- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.12.9, 5.15.0, 5.15.2
- 
        
- 
        c8cb2409477bdc3bc41d6bbdfc5055441cda084f 294b50e1f5c388f666d10febe3fcc024d1d13c24 (qt/qtbase/6.1)
When an action has a shortcut and padding is applied to QMenu::item using stylesheet, the action text overlaps the shortcut text. It works fine with 5.11.3.
QAction rename; rename.setText("Rename"); rename.setShortcut(Qt::Key_F2); QMenu* menu = window.menuBar()->addMenu("Menu"); menu->setStyleSheet("QMenu::item{padding-left:100px;padding-right:100px}"); menu->addAction(&rename);
Please refer to the attached sample and snapshots for 5.11.3 and 5.15.0
- relates to
- 
                    QTBUG-90242 QMenu stylesheet has alignment issue when one item has icon/checkable -         
- Closed
 
-         


