[Development] Using a QML Menu to Qt Quick 3D Xr
remy@rouvin.com
remy.rouvin at gmail.com
Thu Nov 13 13:37:07 CET 2025
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 nobtenez pas souvent de-mail à partir de remy.rouvin at gmail.com
<mailto:remy.rouvin at gmail.com> . 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20251113/8ed9b753/attachment-0001.htm>
More information about the Development
mailing list