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

QStyleSheetStyle::subControlRect has bug in Horizontal scroll bar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.9.0 Alpha
    • 5.3.1
    • Widgets: Style Sheets
    • None
    • 00c9ec63a552d040e851b561c11428fabf1a2b08 8ad9bdf9578d2879d7484c61cf9a46a667f642a4 (qt/qtbase/5.12)

      horizontal scroll bar has bug when set style sheet and
      layout direction be Qt::RightToLeft.

      int switch case (case CC_ScrollBar you dont check layout direction.
      and return unvalid QRect.
      its too easy please fix it and so much.

      #include <QtWidgets>
      
      int main(int argc, char** argv)
      {
          QApplication app(argc, argv);
      
          QMainWindow window;
      
      //    window.setStyleSheet("");
      
          QScrollArea *scrollArea = new QScrollArea(&window);
          QWidget *widget = new QWidget;
          widget->resize(1000, 1000);
          scrollArea->setWidget(widget);
          window.setCentralWidget(scrollArea);
      
          window.resize(400, 400);
          window.show();
      
          return app.exec();
      }
      

        For Gerrit Dashboard: QTBUG-40443
        # Subject Branch Project Status CR V

            chehrlic Christian Ehrlicher
            ahura_24 arman hamun
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes