Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
-
30d90b4cc (dev), 47ae9e4c2 (6.8), 87c6d142d (dev), 18b01267a (6.8), 621b44ba5 (tqtc/lts-6.5)
Description
A simple submenu does not align correctly when using rtl mode (`-reverse`):
QMainWindow mw; auto a1 = new QAction("Action 1"); a1->setIcon(QIcon(":/myicon.png")); auto a2 = new QAction("Act 2"); a2->setCheckable(true); auto menu = mw.menuBar()->addMenu("Menu"); menu->addAction(a1); menu->addAction(a2); auto submenu = menu->addMenu("Sub1"); submenu->addAction(new QAction("Act 3")); mw.show();
ltr mode:
rtl mode:
rtl mode with vista style:
As you can see it also looks like the menu also needs to be moved some pixels to the right.
Also the '>' arrow in ltr mode seems to be to near at the border (in rtl mode it looks better) - was a problem of my debugging while trying to figure out why there is a gap
Attachments
For Gerrit Dashboard: QTBUG-129716 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
596492,7 | Windows11Style: Fix MenuItem drawing | dev | qt/qtbase | Status: MERGED | +2 | 0 |
597051,3 | QMenu: fix PM_SubMenuOverlap in rtl mode | dev | qt/qtbase | Status: MERGED | +2 | 0 |
597665,2 | Windows11Style: Fix MenuItem drawing | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
598472,2 | QMenu: fix PM_SubMenuOverlap in rtl mode | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
598484,2 | QMenu: fix PM_SubMenuOverlap in rtl mode | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |