[Qt-interest] setHorizontal/setVerticalHeader misbehaves (or perhaps QHeaderView does) after show

Esben Mose Hansen kde at mosehansen.dk
Thu Apr 8 10:06:54 CEST 2010


Hi,

if you compile and run the following example, and press the buttom, you'll 
note that the headers disappear. This caused by calling setHorizontalHeader() 
and setVerticalHeader(), using a standard QHeaderView class. Yet, this is not 
the behaviour I get if I make the calls before showing the QTableView. 

Bug/feature? I haven't been able to find the bug in Qt's bugtracker. If noone 
can come up with an explanation for this odd behaviour, I think I'll file a 
bug.

-- 
kind regards, Esben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 1327 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100408/5d732e52/attachment.bin 


More information about the Qt-interest-old mailing list