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

QStyleSheetStyle::subControlRect has bug in Horizontal scroll bar

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes