[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

[Development] Custom QPlatformTheme plugin for exposing global menus

2023-11-16 Thread Eduardo Hopperdietzel
which seem designed to allow external platform menus to apply changes atomically. Unfortunately, these methods do not seem to be invoked. Is there a way to enable them? Additionally, is there any documentation related to this? I've checked [1], but there is no information specific to menus. Thank

[Development] Using DMA instead of SHM in non OpenGL apps (Linux/Wayland)

2023-08-25 Thread Eduardo Hopperdietzel
ensure the compositor finishes importing the buffer into the GPU. Best regards, Eduardo Hopperdietzel -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

[Development] Using DMA instead of SHM in non OpenGL apps (Linux/Wayland)

2023-08-24 Thread Eduardo Hopperdietzel
gains might not justify the effort. So, as you mentioned earlier, it's probably best to stick with SHM and let the compositor handle uploads using DMA, preferably asynchronously. Cheers, Eduardo Hopperdietzel -- Development mailing list Development@qt-project.org https://lists.qt-project.org

[Development] Using DMA instead of SHM in non OpenGL apps (Linux/Wayland)

2023-08-18 Thread Eduardo Hopperdietzel
be mandatory, or should I consider triple buffering or more? Cheers, Eduardo Hopperdietzel -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

[Development] Using DMA instead of SHM in non OpenGL apps (Linux/Wayland)

2023-08-14 Thread Eduardo Hopperdietzel
. Wrap the mapped buffer with a QImage(), following a similar approach as it's done with shared memory. If any of these steps fail, fallback to shared memory. Do you foresee any potential issues with this approach? Please feel free to share your thoughts. Best regards, Eduardo Hopperdietzel

[Development] Using DMA instead of SHM in non OpenGL apps (Linux/Wayland)

2023-08-06 Thread Eduardo Hopperdietzel
memory (I think). I would be willing to implement this, and I would appreciate it if you could guide me to the code that handles this. I assume I should look into the code of the Wayland platform plugin? Best regards, Eduardo Hopperdietzel -- Development mailing list Development@qt-project.org