qt - QTreeView set column size to content, no multiline (fixed row height) -


i have qtreeview on window , want set following behaviour: columns width must set resize contents, have done this:

tabla->header()->setresizemode(qheaderview::resizetocontents); 

now, need set rows 1 line, so, if column contains '\n', should not displayed (i have detailed description dialog see that).

to sum up, need set "no multiline" on treeview.

any appreciated.

i'd rather not extend qtreeview, since have lot of thems , wouldn't change them all, if that's takes...

qtreeview seems ignore newlines in contents when uniformrowheights true (seen qt-4.8)

this not documented, shouldn't relied upon. best remove newlines or replace them spaces when populating treeview.

also, i've noticed exception: if there 1 row in treeview , contains newline, gets displayed in 2 lines, regardless of uniformrowheights.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -