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
    3,929
    Thanks
    229
    Thanked 615 Times in 605 Posts
    Qt products
    Qt5
    Platforms
    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, 18:31
  2. Not able to use updateGL()
    By chintu in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2011, 19:57
  3. update() & updateGL()
    By rick_st3 in forum Newbie
    Replies: 7
    Last Post: 23rd June 2008, 14:57
  4. QGLWidget::updateGL( )
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2006, 20:21
  5. QGLWidget updateGL()
    By Lele in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2006, 16: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.