PDA

View Full Version : Qt3D 2D Text (HUD)



panicq
29th January 2021, 20:36
Hi,

I'm new to Qt3D and I'm wondering how can I display a 2D text on top of my Qt3DWindow element (like a HUD).

- Putting a label and using the raise() method isn't displaying the label on top.
- https://doc.qt.io/qt-5/qt3dextras-qtext2dentity.html -> when creating a QText2DEntity instance and parenting it to the root node it lives in 3D space...
- I wasn't able to use a QPainter in the paintEvent.

I'm probably missing something as this should be a simple thing to do.

Any help would be appreciated,

Thanks.