SUMMARY if the layoutDirection is set to RightToLeft the context menu is malformed when using the dark breeze theme STEPS TO REPRODUCE 1. compile example code 2. set dark breeze theme 3. start example app 4. right click in the QDoubleSpinBox OBSERVED RESULT the context menu is malformed EXPECTED RESULT the context menu is not malformed SOFTWARE/OS VERSIONS KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 Kernel Version: 6.10.3 (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION example code to reproduce the bug: int main(int argc, char* argv[]) { QApplication app(argc, argv); QDoubleSpinBox sb; sb.setLayoutDirection(Qt::RightToLeft); sb.show(); return app.exec(); }
Created attachment 172477 [details] picture showing the malformed menu
Created attachment 172478 [details] normal menu with default qt theme
Cannot reproduce in an actual app, e.g. Dolphin run with `dolphin --reverse`. Can you? Also your sample code isn't complete e.g. it's missing includes and stuff.
i can't reproduce it with dolphin but i don't see a QDoubleSpinBox in dolphin. this code compiles here and shows the bug: #include <QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); QDoubleSpinBox sb; sb.setLayoutDirection(Qt::RightToLeft); sb.show(); return app.exec(); }
and the test.pro file: TEMPLATE = app QT += widgets SOURCES += main.cpp
@Nate Graham: could you reproduce the bug?
Unfortunately I am not smart enough to figure out how to compile an app from those text snippets.
Created attachment 174903 [details] untar the file, open a shell in the corresponding folder and build with: qmake6 . ; make
could you compile it now?(In reply to Nate Graham from comment #7) > Unfortunately I am not smart enough to figure out how to compile an app from > those text snippets. could you compile it now?
ping
@Nate Graham
Yes, I can reproduce the issue with the example code now, thanks. However I don't see it in any of our actual apps when in reversed mode. Where did you see this happen?
i wrote an app where i used it and the example code shows that there is a bug will this get fixed?
If someone takes initiative to fix it, yeah.