sebastian.vesenmayer Posted April 4, 2018 Posted April 4, 2018 Hello everybody, we are planning a Project now with Qt Ui Elements on top of a Unigine Widget. We made a little research and found out that Qt is using a BackingStore to composite their UI Elements/Widgets (Labels, Buttons etc.). After calling winId() on a QWidget, the QWidget class creates a native HWND on Windows. When creating a OpenGL context with the HWND the rendered content is not blended correctly with the UI. Since Unigine uses the same technique with their AppQt example, we are wondering if you have any idea, how to do this. Or is there a solution to use a QOpenGLWidget instead of a QWidget? Thanks, Sebastian
maxi Posted April 5, 2018 Posted April 5, 2018 Hi Sebastian, We didn't try to integrate QOpenGLWidget, but maybe sample about integration with Qml will be helpfull, since it uses similar technics.
sebastian.vesenmayer Posted April 9, 2018 Author Posted April 9, 2018 Hi maxi, thank you for the hint, just wanted to let you know that it is working with QOpenGLWidget. The blending is now correct between overlayed QWidgets.
silent Posted April 9, 2018 Posted April 9, 2018 Sebastian, Tha'ts great news :) How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts