[Qt-interest] QTreeView or QTableView size

jani at wbsources.com jani at wbsources.com
Thu Sep 8 10:58:04 CEST 2011


Hello Gents,

Is it possible to automatically resize QTableView to its content?
Now I set its size to QTableView::horizontalHeader()->height() + counting
the lines and calling rowHeight() on all of them. QSizePolicy::Minimum
does not seem to affect how my table is sized. Also there is a default
minimum size (256x192) for all QTableView even if is set minimum size to
to zero.

Any help would be greatly appreciated.
Thanks.





More information about the Qt-interest-old mailing list