PDA

View Full Version : QTreeView | disable multiline,wrapping



fleabite
4th January 2007, 16:34
Hello everybody,

is there a simple way to disable the 'multiline diplay' of rows in a QTreeView if
the text contains '\n' ?

(at the moment '\n' are replaced with '|' in the QStandardItemModel::data() function,
but I'm looking for a smarter solution :o , provided from Qt)

thx in advance !

scottaronbloom
5th January 2007, 11:05
You may want to try and replace the \n with \\n

Scott