[Qt-interest] Hide the first column of QTableView about line number
Israel Brewster
israel at frontierflying.com
Thu Jul 16 23:59:34 CEST 2009
Another option (which I personally prefer, because I think it gives me
a cleaner look) is to use a QTreeView instead of a QTableView to
display your model. It sounds somewhat counter-intuitive if you have a
table to display, but it works well.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 397 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/e6b35250/attachment.bin
-------------- next part --------------
On Jul 16, 2009, at 11:41 AM, Mhayk Whandson wrote:
> Thank you!!!
>
>
>
> On Thu, Jul 16, 2009 at 3:33 PM, Eric Clark<eclark at ara.com> wrote:
>> That is the vertical header. Do this:
>>
>> yourTableView->verticalHeader()->hide();
>>
>> Eric
>>
>> -----Original Message-----
>> From: mhaykwhandson at gmail.com [mailto:mhaykwhandson at gmail.com] On
>> Behalf Of Mhayk Whandson
>> Sent: Thursday, July 16, 2009 2:32 PM
>> To: Eric Clark
>> Cc: Qt Interest (qt-interest at trolltech.com)
>> Subject: Re: [Qt-interest] Hide the first column of QTableView
>> about line number
>>
>> The QTableView put a first column that is a column row number, so, I
>> would like to remove this first column.
>>
>> best regards,
>>
>> On Thu, Jul 16, 2009 at 3:13 PM, Eric Clark<eclark at ara.com> wrote:
>>> Or are you talking about the vertical header on the left side of
>>> the table?
>>>
>>> -----Original Message-----
>>> From: mhaykwhandson at gmail.com [mailto:mhaykwhandson at gmail.com] On
>>> Behalf Of Mhayk Whandson
>>> Sent: Thursday, July 16, 2009 2:10 PM
>>> To: Eric Clark
>>> Cc: Qt Interest (qt-interest at trolltech.com)
>>> Subject: Re: [Qt-interest] Hide the first column of QTableView
>>> about line number
>>>
>>> Hello Eric, the method setColumnHidden just hide the model's
>>> columns,
>>> my problem is to hide the line number column of QTableView.
>>>
>>> best regards.
>>>
>>> On Thu, Jul 16, 2009 at 2:58 PM, Eric Clark<eclark at ara.com> wrote:
>>>> Try this http://doc.qtsoftware.com/4.5/qtableview.html#setColumnHidden
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com
>>>> ] On Behalf Of Mhayk Whandson
>>>> Sent: Thursday, July 16, 2009 1:36 PM
>>>> To: qt-interest at trolltech.com
>>>> Subject: [Qt-interest] Hide the first column of QTableView about
>>>> line number
>>>>
>>>> Hi all,
>>>>
>>>> I am tryng to hide de first column about line number of QTableView,
>>>> could you help me ?
>>>>
>>>> best regards,
>>>>
>>>> --
>>>> Mhayk Whandson
>>>> Linux User #413723
>>>> E-mail: eu at mhayk.com.br
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>
>>>
>>>
>>>
>>> --
>>> Mhayk Whandson
>>> Linux User #413723
>>> E-mail: eu at mhayk.com.br
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>>
>> --
>> Mhayk Whandson
>> Linux User #413723
>> E-mail: eu at mhayk.com.br
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
>
>
> --
> Mhayk Whandson
> Linux User #413723
> E-mail: eu at mhayk.com.br
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list