Home > database >  Qt3D : How to display text on the 3D Window screen?
Qt3D : How to display text on the 3D Window screen?

Time:08-04

How does one display text on the 3D window screen? I know they a text2D entity module, but thats for displaying text in 3D next to the objects. I want to know if I can display 2D text on the screen.

Im using C so would like to know if this possible in C and not qml thanks.

CodePudding user response:

There is enter image description here

enter image description here

CodePudding user response:

Parisa has already provided a nice solution, I'll just post here mine here in case you are looking for something which allows to draw UI-like text:

Like stated in the comments, either draw a rectangular surface on top of everything using orthographic projection mode (similar to my Qt3DBackground example, just draw the texture last and make it transparent).

Or instead use my Qt3D Widget which allows to add Qt's widgets onto Qt3D. This way, you can draw your scene and use a simple QLabel on top.

  •  Tags:  
  • c qt
  • Related