Qt-interest Archive, December 2007
table size
Message 1 in thread
Hello,
I'm not sure if it's the good mailing list for such a technical question.
I want to create a QTableWidget(1,2).
I want the table without white all around,
So I try to setMaximumHeight on this table.
I've found rowHeight(0), but I can't find the header height.
I've also tried with sizePolicy, but I didn't find how to use it on a
TableWidget.
Any hint would be appreciate.
Regards
Stephane
--
[ signature omitted ]
Message 2 in thread
On Tuesday 18 December 2007 05:51:07 Stéphane List wrote:
> Hello,
>
> I'm not sure if it's the good mailing list for such a technical question.
>
> I want to create a QTableWidget(1,2).
>
> I want the table without white all around,
>
> So I try to setMaximumHeight on this table.
>
> I've found rowHeight(0), but I can't find the header height.
>
> I've also tried with sizePolicy, but I didn't find how to use it on a
> TableWidget.
>
> Any hint would be appreciate.
>
The headers are after all just widgets. Have you tried:
table->horizontalHeader()->height();
Good Luck!
--Justin
--
[ signature omitted ]
Message 3 in thread
Justin Noel a écrit :
> On Tuesday 18 December 2007 05:51:07 Stéphane List wrote:
>
>> Hello,
>>
>> I'm not sure if it's the good mailing list for such a technical question.
>>
>> I want to create a QTableWidget(1,2).
>>
>> I want the table without white all around,
>>
>> So I try to setMaximumHeight on this table.
>>
>> I've found rowHeight(0), but I can't find the header height.
>>
>> I've also tried with sizePolicy, but I didn't find how to use it on a
>> TableWidget.
>>
>> Any hint would be appreciate.
>>
>>
>
> The headers are after all just widgets. Have you tried:
>
> table->horizontalHeader()->height();
>
> Good Luck!
> --Justin
That's it ! thanks Justin.
--
[ signature omitted ]