How to span the Columns of a QTreeView in C++/Qt? -
I want to do some lengthy text in one of my columns of qtreeview (not the first column). This text is to be fully displayed but it is not elaborate. SetFirstColumnSpanned is a method but it only works for the first column. Any ideas about how to span other columns?
Try to use
For example:
< Pre> tableview-> Horizontal headers () - & gt; Set Resize Mode (column_number, QHeaderView :: ResizeToContents);
Comments
Post a Comment