How can I call PaintGL method
-
The paintGL method is called automatically when a number of events occur, eg window resizing etc.
Is there any way to explicitly call the paintgl method in QT?
@void CubeView::update()
{
QMatrix4x4 world;
double posx=drawcursor();
world.translate(posx,0,0);
cube->setLocalTransform(world);
std::cout<<"hi\n";
QGLPainter paint;
paintGL(&paint);
}@ -
Hi,
Just call the base class update() function
-
Thank you for your reply. I am sorry to post this on two forums. However, I am using the QGLView class and it does not seem to contain the update function.
Does it have an update function? -
Since the question is getting one the same road as "this":http://qt-project.org/forums/viewthread/49967/ one, let's stop here and only use one thread.