Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.15, 6.2.9, 6.5.2, 6.6.0 Beta4
-
Windows 10 22H2, MSVC 2019 x64
-
-
78512135c (dev), 6ac543c84 (6.6), 9963e37bb (tqtc/lts-6.5)
Description
The option `-platform windows:reverse` was introduced to support RTL window title bars (see https://codereview.qt-project.org/c/qt/qtbase/+/42521 ). However, using it causes the Qt GUI to stop responding to the mouse scroll wheel.
Code
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { width: 400 height: 200 visible: true title: "مرحبا بالعالم" LayoutMirroring.enabled: true LayoutMirroring.childrenInherit: true ComboBox { width: parent.width model: ["مرحبًا","عالم","مرحبا بالعالم", "aaa", "bbb", "ccc", "ddd", "eee", "fff", "ggg"] } }
Steps to reproduce
- Add qApp->setLayoutDirection(Qt::LayoutDirection::RightToLeft); to main() and then run the QML code above
- Click on the combobox and use the mouse wheel to scroll the drop-down menu
- Close and relaunch the app with the console arguments -platform windows:reverse and repeat the test
Outcomes
- Without -platform windows:reverse the scroll wheel works
- With -platform windows:reverse the scroll wheel does not work
Attachments
Issue Links
- relates to
-
QTBUG-113497 QGuiApplication::setLayoutDirection does not change the window to RTL
- Closed
- resulted from
-
QTBUG-28463 Unable to use Arabic right to left (RTL) layout in the title bar of own custom dialog.
- Closed