Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2333

Multiple line drawn due to line break disappears when eliding starts.

XMLWordPrintable

      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();
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            monsen Marius Bugge Monsen
            smk smk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes