Allow components to inherit from Menu so that they can be imported into MenuBar #9694
Unanswered
tduarte-dspc
asked this question in
Ideas
Replies: 1 comment 4 replies
-
|
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following code does not compile. On file_menu.slint I get the following error: Menu can only be within a ContextMenuArea element.
main.slint:
file_menu.slint:
With a component for each Menu it would be easier to main the menus. A complex application can have dozens/(maybe)hundreds of menu items.
I tried to make FileMenu inherit from ContextMenuArea but then it fails on the MenuBar on the main.slint.
Beta Was this translation helpful? Give feedback.
All reactions