Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. threadedqopenglwidget sample causes an assert on resize
Qt 6.11 is out! See what's new in the release blog

threadedqopenglwidget sample causes an assert on resize

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.1k 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.
  • L Offline
    L Offline
    LudoJ49
    wrote on last edited by
    #1

    Hi,

    I'm trying to do an OpenGL app with rendering in a thread. So I look at QT sample "threadedqopenglwidget".

    Everything is fine, until I resize the window. Then, I have an assert with "Cannot make QOpenGLContext current in a different thread".

    Any idea of what causes that ?

    Here is how to reproduce :

    • build the sample "threadedqopenglwidget"
    • resize the top level window (the one with only one QT logo). When I say resize, resize like crazy, lol
    • The assert should happend
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should add what version of Qt/OS/Graphic card you are currently using.

      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
      • L Offline
        L Offline
        LudoJ49
        wrote on last edited by
        #3

        QT5.5.1 on Windows X
        Graphic card is Intel HD graphics4600

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

          Do you mean Windows 10 ?

          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
          • L Offline
            L Offline
            LudoJ49
            wrote on last edited by
            #5

            yep Windows 10 Pro 64 bits to be precise

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

              Did you check that one of the not threaded application work fine ?

              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
              • T Offline
                T Offline
                Theo Dev
                wrote on last edited by
                #7

                Hi, I found one answer here: https://stackoverflow.com/a/68654054/10694281.

                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