Bug 495024 - Shortcuts in QMenu with Right-To-Left application direction are drawing overlay
Summary: Shortcuts in QMenu with Right-To-Left application direction are drawing overlay
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 6.2.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-19 04:28 UTC by Igor Mironchik
Modified: 2024-12-12 20:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Overlayed shortcuts (157.67 KB, image/gif)
2024-10-19 04:28 UTC, Igor Mironchik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Mironchik 2024-10-19 04:28:35 UTC
Created attachment 175011 [details]
Overlayed shortcuts

SUMMARY
Shortcuts in QMenu with Right-To-Left application direction are drawing overlay


STEPS TO REPRODUCE

#include <QtWidgets>

int main(int argc, char** argv) {
    QApplication app(argc, argv);
    QMainWindow mw;
    mw.setLayoutDirection(Qt::RightToLeft);
    auto menu = mw.menuBar()->addMenu("Menu");
    auto action = menu->addAction("Action 1");
    action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_A));
    mw.show();
    return app.exec();
}


OBSERVED RESULT
Look at the attached GIF.


EXPECTED RESULT
Shortcuts should not be overlayed.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241016
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP ProBook 640 G3

ADDITIONAL INFORMATION