Widget 2D into OpenGL 3D view
-
wrote on 3 Nov 2015, 16:04 last edited by A Former User 11 Mar 2015, 16:53
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 -
wrote on 3 Nov 2015, 20:13 last edited by
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
-
wrote on 4 Nov 2015, 08:38 last edited by
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 ?
-
wrote on 4 Nov 2015, 09:28 last edited by
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.
-
wrote on 5 Nov 2015, 07:53 last edited by
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
1/9