[Development] Custom QPlatformTheme plugin for exposing global menus

2023-11-16 Thread Eduardo Hopperdietzel
Hi again, I'm going to answer my own question. I've come to realize that QPlatformMenuBar::syncMenu() and QPlatformMenu::syncMenuItem() are indeed intended for applying changes atomically. They are called after the properties of menus or items are modified but not during their construction. My ove

[Development] Custom QPlatformTheme plugin for exposing global menus

2023-11-16 Thread Eduardo Hopperdietzel
Hello, I am currently working on a library for exposing global menus in Wayland, and as part of this effort, I am developing a custom QPlatformTheme plugin. However, I have encountered some uncertainties. While I have successfully exported menu bars, menus, and items to my "global menu," I am fac