Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.3.1
-
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
- duplicates
-
QTBUG-38748 Horizontal orientation mode of QScrollBar has bug in RightToLeft layout when using style-sheet
- Closed