[Interest] new TableView columns hiding
Vlad Stelmahovsky
vladstelmahovsky at gmail.com
Wed Oct 24 18:14:26 CEST 2018
just to clarify, its about QML's TableView, not widget's QTableView
On 10/24/18 6:05 PM, Christian Ehrlicher wrote:
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181024/021ab3f0/attachment.html>
More information about the Interest
mailing list