Details
-
Bug
-
Resolution: Invalid
-
P4: Low
-
4.4.0
-
None
Description
When trying to display long text with line break " \n "in QTreeView. It displays another line as it encounters "\n" in the text.
But if we resize QTreeView window to smaller size this additional line disappears even though first line is elided.
Here is example code:
#include <QtGui>
int main(int argc, char**argv)
{
QApplication app(argc,argv);
QStringListModel model;
model.setStringList( QStringList() << "some text with a linebreak\n second line will disappear and you will..." );
QTreeView tv;
tv.setModel(&model);
tv.show();
return app.exec();
}