Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QOpenGLWidget::repaint() not immediatly repaint
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget::repaint() not immediatly repaint

Scheduled Pinned Locked Moved Unsolved Game Development
9 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mous
    wrote on last edited by
    #1

    Hellow :
    I use the QOpenGLWidget class to rendering OpenGL graphics at a Desktop PC(win7).
    I call repaint() ,but it not immediate repaint.
    it several times results in just one paintEvent() called that act like update() .
    I use repaint() work fine at another laptop(XP).
    why?how to solve it?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      Can you show the code you are using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What version of Qt are you using ?
        Can you show the code you are using ?

        M Offline
        M Offline
        mous
        wrote on last edited by
        #3

        @SGaist
        QT5.6.2
        the code too much to show.
        the code runs no problem in my laptop PC , only the repaint() function not fine in my desktop PC but others are fine.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you should check the difference between the two machines. It could be a driver problem.

          What graphic stack do you use on that desktop machine ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mous
            wrote on last edited by
            #5

            what is graphic stack?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Graphic Card
              Driver
              etc.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mous
                wrote on last edited by
                #7

                ATI Radeon HD 4600 Series
                main driver: aticfx32.dll

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mous
                  wrote on last edited by
                  #8

                  The problem has been solved. To show the effect,I use the for loop delay after repaint(), repaint() has no effect, but the delay function written with Qtime, repaint() can redraw the immediately.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Because if you use a tight loop you'll block Qt's event loop hence no painting.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved