You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, December 2nd 2011, 2:09pm

QGLWidget + child widgets

I'm trying to make some kind of game using QGLWidget. I would like to use QPushButtons and other QWidgets for menus. But when I create QPushButton with QGLWidget as its parent, every time when QGLWidget paints itself i get "QPainter::begin: Paint device returned engine == 0, type: 1" and couple "***: Painter not active". I'm not using QPainter in my game. I thought that QGLWidget supports child widgets? I'm using Qt 4.7.4 + MinGW.
How could I fix this problem?

Sorry about bad English.

This post has been edited 2 times, last edit by "Latexi95" (Dec 2nd 2011, 2:46pm)

Used tags

child, QGLWidget, widget