Results 1 to 2 of 2

Thread: updateGL() in QOpenGLWidget

  1. #1
    Join Date
    Dec 2018
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    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
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    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

Bookmarks

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.