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

Q3ListView: On Mac when using the plastique style it will cause recursive repaints

    XMLWordPrintable

Details

    • macOS

    Description

      Q3ListView: On Mac when using the plastique style it will cause recursive repaints

      Example:

      #include <QtGui>
      #include <Q3ListView>
      #include <QPlastiqueStyle>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);

      // set to any style but QMacStyle to get recursive repaint errors
      a.setStyle(new QPlastiqueStyle());

      QMainWindow dialog;

      Q3ListView *test = new Q3ListView(&dialog);

      // error does appear when root items are decorated
      test->setRootIsDecorated(true);

      test->addColumn( "Qualified name" );

      Q3ListViewItem *item1 = new Q3ListViewItem(test);
      item1->setText(0, "Newbaby1");

      Q3ListViewItem *item2 = new Q3ListViewItem(test);
      item2->setText(0, "Newbaby2");

      Q3ListViewItem *item3 = new Q3ListViewItem(test);
      item3->setText(0, "Newbaby3");

      dialog.setCentralWidget(test);
      dialog.show();
      a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));

      return a.exec();
      }

      Attachments

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

        Activity

          People

            bachewii Jens
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes