Ideal width for QTreeWidgetItem Column (sizehint?) or Better Method for Tooltips



  • I have a super quick question - how do retrieve the ideal width for a QTreeWidgetItem column? I tried sizeHint(0).width but I am getting a result of -1. Thanks :) I am trying to create a tooltip for items for which the ideal column width is greater that the column width and the contents of the text do not fit in the column. Perhaps there is a better method?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.