I only use the Menu as a Popup.
My application (pockemul.com) was originally designed exclusively for desktop. When I adapted it for a touch interface, I replaced the MenuBar with icons and contextual menus. Now I need to imagine an interface suited for XR, which is both exciting and rather complex. I believe it will take a long period of refinement to find the right approach. Rémy De : Paul Tvete <[email protected]> Envoyé : jeudi 13 novembre 2025 12:05 À : [email protected]; [email protected] Objet : Re: [Development] Using a QML Menu to Qt Quick 3D Xr Hi! Unfortunately, Popup is indeed not compatible with XrItem currently. Qt Quick uses an Overlay item which is the parent of all popups. The overlay is a parent of the Window. This clearly doesn't work in XR, since there is no real window, and we also need a separate overlay for each XrItem. After a hallway discussion, we have some ideas on how to give XrItem its own overlay, but we have to do some experiments. This would involve changes to Qt Quick/Qt Quick Controls. Out of curiosity: Are you using Menu as a popup menu, or are you also using a MenuBar? - Paul Confidential _____ From: Development <[email protected] <mailto:[email protected]> > on behalf of [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > Sent: Tuesday, 11 November 2025 12:09 To: [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > Subject: [Development] Using a QML Menu to Qt Quick 3D Xr Vous nobtenez pas souvent de-mail à partir de [email protected] <mailto:[email protected]> . Pourquoi c <https://aka.ms/LearnAboutSenderIdentification> est important Hello, I am currently porting my application to Qt Quick 3D XR and I am facing an issue with context menus. I am using a Menu component, but since it depends on Popup, it does not appear to be compatible with an XrItem. Is there any way to make this work? My Menu is created dynamically and is quite complex, so I would prefer to avoid rewriting the component using Qt Quick Controls. Rémy
-- Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
