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

Win7: Fusion style sort indicator is upside down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2
    • GUI: Look'n'Feel
    • None
    • Windows 7, Qt 5.3.2 MSVC2013

    Description

      With default style, sort indicator/arrow behaves normaly.
      When set "Fusion" style, arrow is upside down.

      #include <QtGui>
      #include <QtWidgets>
      #include <QtCore>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QMainWindow *window = new QMainWindow;
          QTableView *tableView = new QTableView;
          window->setCentralWidget(tableView);
          tableView->setSortingEnabled(true);
      
          QApplication::setStyle(QStyleFactory::create("Fusion"));
      
          QStandardItemModel *model = new QStandardItemModel;
          model->appendRow(QList<QStandardItem*>() <<  new QStandardItem("a"));
          model->appendRow(QList<QStandardItem*>() <<  new QStandardItem("b"));
          model->appendRow(QList<QStandardItem*>() <<  new QStandardItem("c"));
      
          tableView->setModel(model);
      
          window->show();
          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
            fbucek fbucek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes