Unsolved Widget 2D into OpenGL 3D view
-
Hi,
I want to link QWidget into a OpenGL window. The QWidget may be render into a FBO that applied on a billboard. It is a good way ?
Regadrs,
Robin==========
Bonjour,
Je souhaiterais pouvoir interagir avec des widgets du type button dans une vue OpenGL. Typiquement avec un billboard contenant une interface 2D constitué de QWidget.
Auriez vous une piste ?Merci d'avance,
Robin -
for OpenGL, use inheret QOpenGLWidget.
then just put other widgets on top of it.I'm not sure how to add widgets inside the QOpenGLWidget.
-
Hi and welcome to devnet,
Are you sure QWidget is you best bet ? Sounds like QtQuick might be a better fit in your case
-
I don't think QtQuick is usefull for 3D interface. It's a powerfull tool for complex 2D interface.
I don't want to have a HUD, I want a 3D user interface with QWidget inside my OpenGL scene. -
Just to be sure we are talking about the same thing, can you point to an example of what you would like to achieve ?
-
Yes, you can find a picture exemple here
-
So you want widgets that you can turn around itself and around that scene ? Again I'd recommend QtQuick, if you want controls like buttons you have the QtQuick.Controls module.
-
Ok,
I think I didn't understand the power of QtQuick. I'll make some research on it.
Thank you very much :) -
Depending on your needs, take a look at the Qt3D module which you can use with QML. Here you can find an example of what you can do with that module and QML