Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.8, 6.8.3, 6.9.0
-
-
36ebec92e (dev), 641422686 (6.10), 2c686e47b (6.9), 5b80a8c4d (tqtc/lts-6.8)
Description
In macOS, when deleting a QMenu that has been added to QMainWindow QMenuBar, the deleted menu is not removed from the native menu bar.
To reproduce, run the attached example project.
1. Toggle on the checkbox to add a menu to the menu bar. Observe a new menu is added to the menu bar.
2. Toggle off the checkbox to delete the added menu. Observe the deleted menu is not removed from the menu bar.
Expected behavior: the deleted menu should be removed from the menu bar. When a non-native menu bar is used, the expected behavior is observed.
Attachments
For Gerrit Dashboard: QTBUG-135634 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
650965,1 | QCocoaMenu: Explicitly remove NSMenu from supermenu on destruction | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
649833,8 | QCocoaMenu: Explicitly remove NSMenu from supermenu on destruction | dev | qt/qtbase | Status: MERGED | +2 | 0 |
649926,2 | QCocoaMenu d'tor: avoid calling virtual dismiss() method | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
649927,2 | QCocoaMenu: Silence compiler warning about unused string | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
650059,2 | QCocoaMenu: Explicitly remove NSMenu from supermenu on destruction | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
650086,2 | QCocoaMenu: Explicitly remove NSMenu from supermenu on destruction | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
650590,2 | QCocoaMenu: Explicitly remove NSMenu from supermenu on destruction | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |