Hi all,
I try to set the cosmetic pen for QGraphicsPolygonItem but if I use the opengl render it doesn't work as I expect.
Here the code:
Code:
if I comment out the following code line it works fine.
Thanks,
Giuseppe
Printable View
Hi all,
I try to set the cosmetic pen for QGraphicsPolygonItem but if I use the opengl render it doesn't work as I expect.
Here the code:
Code:
if I comment out the following code line it works fine.
Thanks,
Giuseppe
Note the inherit bit.Quote:
Detailed Description
The QGLWidget class is a widget for rendering OpenGL graphics.
QGLWidget provides functionality for displaying OpenGL graphics integrated into a Qt application. It is very simple to use. You inherit from it and use the subclass like any other QWidget, except that you have the choice between using QPainter and standard OpenGL rendering commands.