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]> on behalf of 
[email protected] <[email protected]>
Sent: Tuesday, 11 November 2025 12:09
To: [email protected] <[email protected]>
Subject: [Development] Using a QML Menu to Qt Quick 3D Xr

Vous n’obtenez pas souvent d’e-mail à partir de [email protected]. 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
-- 
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to