You are not logged in.

1

Tuesday, June 13th 2017, 10:15am

Submenu not enabled in mac, Qt 5.8.0~5.9.0

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 MenuBar {    Menu {
		title: "A"
		Menu {
			title: "B"

			MenuItem {
				text: "C"
			}

			MenuItem {
				text: "D"
			}
		}
	}
}


The submenu(B) is not enabled;
I annotate qt source(qtbase/src/plugins/platforms/cocoa/qcocoamenuitem.mm:155), and re-build.
The submenu(B) is enabled;


I don't know why to set m_native.action = null, cause validateMenuItem func not enabled;