[Qt-interest] QTableview with QHeaderView::ResizeToContents. Incorrect behaviour?

Malyushytsky, Alex alex at wai.com
Mon Nov 23 23:49:58 CET 2009


Fighting the problem that some items in my QTableWidget are not taken into account when column is supposed to be auto-resized ( with ..horizontalHeader()->setResizeMode( col, QHeaderView::ResizeToContents);)

I found the following ticket:
http://qt.nokia.com/developer/task-tracker/index_html?method=entry&id=256143

Why the ticket was closed?

When QHeaderView::ResizeToContents is called you expect items in all  rows being taken into account, not only items currently in viewport.
As for me this is a bug and not a "feature".
User has now any way to update the column width in such mode, it means all items have to be taken into account or he will not be able to see items.
Am I wrong?


Regards,
   Alex



---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list