[Development] Using a QML Menu to Qt Quick 3D Xr

Paul Tvete Paul.Tvete at qt.io
Thu Nov 13 12:04:40 CET 2025


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 <development-bounces at qt-project.org> on behalf of remy at rouvin.com <remy.rouvin at gmail.com>
Sent: Tuesday, 11 November 2025 12:09
To: Development at qt-project.org <Development at qt-project.org>
Subject: [Development] Using a QML Menu to Qt Quick 3D Xr

Vous n’obtenez pas souvent d’e-mail à partir de remy.rouvin at gmail.com. Pourquoi c’est important<https://aka.ms/LearnAboutSenderIdentification>

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20251113/1ec51b69/attachment.htm>


More information about the Development mailing list