PDA

View Full Version : transparent widget container



sajis997
3rd November 2014, 09:50
Hello forum,


It had been quite a while i have tried Qt and it has grown up to Qt5. I had some experiences with Qt4. I intend to use the new version in my future project.

The project will have a UI similar to the following:

https://developer.nvidia.com/gameworks-opengl-samples

As you can see that the widget container is transparent. I hope it is possible in Qt . Could you refer me to some examples that implemented the intended feature.

My project will not use any OpenGL related wrapper classes/functions from Qt5, rather it will assist to access the modern opengl core profile and user input from the application and rest of the rendering will be done by core OpenGL command and then are submitted to the QWindow instance for display.

Some hint/suggestion is appreciated.


Thanks

wysota
3rd November 2014, 12:54
To be honest I don't see any transparent widget container on the web page you refer to. I can direct you to QOpenGLWidget class from Qt5.4+ (http://doc-snapshot.qt-project.org/qt5-5.4/qopenglwidget.html) which is a full replacement of QGLWidget from Qt4. Alternatively you can implement your UI in QML and implement the scene rendering using QQuickWindow::beforeRendering() signal.

sajis997
3rd November 2014, 14:54
Hello forum,


It had been quite a while i have tried Qt and it has grown up to Qt5. I had some experiences with Qt4. I intend to use the new version in my future project.

The project will have a UI similar to the following:

https://developer.nvidia.com/gameworks-opengl-samples

As you can see that the widget container is transparent. I hope it is possible in Qt . Could you refer me to some examples that implemented the intended feature.

My project will not use any OpenGL related wrapper classes/functions from Qt5, rather it will assist to access the modern opengl core profile and user input from the application and rest of the rendering will be done by core OpenGL command and then are submitted to the QWindow instance for display.

Some hint/suggestion is appreciated.


Thanks

Please look for the Bloom example from the page i referred you to and then you will find the UI that i am talking about.

wysota
3rd November 2014, 18:23
I still don't see anything transparent. Are you sure "transparent" is the proper word for what you mean? Do you by any chance mean the translucent overlay that contains sliders and such? You can implement that either in QtQuick/QML or by setting an appropriate attribute on a widget.