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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -