[Interest] new TableView columns hiding

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Oct 24 18:05:28 CEST 2018


Am 24.10.2018 um 10:26 schrieb Shawn Rutledge:
> ue (have no idea, why)
> Why: because the layout algorithm could have a bad edge case if some columns are zero-width.  (It keeps trying to fill the width of the view, but maybe it will never get there?)
You not talk about QHeaderView but I think the codebase may be derived 
from it:

void QHeaderView::resizeSection(int /logicalIndex/, int /size/)
Resizes the section specified by /logicalIndex/ to /size/ measured in 
pixels. The size parameter must be a value larger or equal to zero. A 
size equal to zero is however not recommended. In that situation 
hideSection <http://doc.qt.io/qt-5/qheaderview.html#hideSection> should 
be used instead.


Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181024/34710f97/attachment.html>


More information about the Interest mailing list