Results 1 to 2 of 2

Thread: updateGL() in QOpenGLWidget

  1. #1
    Join Date
    Dec 2018
    Qt products

    Default updateGL() in QOpenGLWidget

    updateGL() is present in QGLWidget class which in turn calls glDraw and paintGL by making current context. What is the equivalent call in QOpenGLWidget to achieve same?

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 638 Times in 628 Posts
    Qt products
    Unix/X11 Windows Android

    Default Re: updateGL() in QOpenGLWidget

    From the QOpenGLWidget docs:

    If you need to trigger a repaint from places other than paintGL() (a typical example is when using timers to animate scenes), you should call the widget's update() function to schedule an update.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. updateGL() Help
    By Halpha in forum Newbie
    Replies: 1
    Last Post: 16th April 2013, 17:31
  2. Not able to use updateGL()
    By chintu in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2011, 18:57
  3. update() & updateGL()
    By rick_st3 in forum Newbie
    Replies: 7
    Last Post: 23rd June 2008, 13:57
  4. QGLWidget::updateGL( )
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2006, 19:21
  5. QGLWidget updateGL()
    By Lele in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2006, 15:08


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.