PDA

View Full Version : QWidget over a QGLWidget



NikoM
29th January 2015, 17:39
Hi,

I know there is an eternal question and there are a lot of post about this but without a solution.

I try to create a HUD (QWidget) on a QGLWidget with transparency but I have of black background. Actually I create QWidget on a separate window but it's a little dirty. I prefer integrate HUD into the main window.

I try to use QGraphicsView / QGraphicsScene but I cant create a good exemple (my QGLWidget catch some event and with QGraphicsView event is not send to QGLWidget).

With Qt5.3 or Qt5.4 there is another method to display QWidget over a QGLWidget ?

Thanks in advance,
Niko

wysota
29th January 2015, 19:22
Why do you need to display a widget over QGLWidget? Why can't you use an overlay?