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

Paul Tvete Paul.Tvete at qt.io
Mon Nov 24 10:52:03 CET 2025


I have now created https://qt-project.atlassian.net/browse/QTBUG-142145 to track this issue.

And best of luck with your XR user interface! It looks like a really interesting project.

- Paul

Public
________________________________
From: remy at rouvin.com <remy.rouvin at gmail.com>
Sent: Thursday, 13 November 2025 13:37
To: Paul Tvete <Paul.Tvete at qt.io>; Development at qt-project.org <Development at qt-project.org>
Subject: RE: [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>

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 <Paul.Tvete at qt.io>
Envoyé : jeudi 13 novembre 2025 12:05
À : Development at qt-project.org; remy at rouvin.com
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 <development-bounces at qt-project.org<mailto:development-bounces at qt-project.org>> on behalf of remy at rouvin.com<mailto:remy at rouvin.com> <remy.rouvin at gmail.com<mailto:remy.rouvin at gmail.com>>
Sent: Tuesday, 11 November 2025 12:09
To: Development at qt-project.org<mailto:Development at qt-project.org> <Development at qt-project.org<mailto: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<mailto: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/20251124/83c6adb6/attachment-0001.htm>


More information about the Development mailing list