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. Makecurrent
Qt 6.11 is out! See what's new in the release blog

Makecurrent

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 3.5k 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.
  • S Offline
    S Offline
    suma
    wrote on last edited by
    #1

    Hi,
    Im getting an error something like this :
    QGLContext::makecurrent():Failed.
    What may be the reason.

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dword
      wrote on last edited by
      #2

      bq. In some very rare cases the underlying call may fail. If this occurs an error message is output to stderr.

      You should try to grab this error message

      1 Reply Last reply
      0
      • S Offline
        S Offline
        suma
        wrote on last edited by
        #3

        Im not understanding what are those rare cases.If u find plz let me know

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dword
          wrote on last edited by
          #4

          Without the error message I guess it would be hard to find out... Aren't you able to retrieve it?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            suma
            wrote on last edited by
            #5

            In command prompt its giving above error message nothing else. But along with this some errors like XLib:sequence Failed,XError BadLenght,BadAccess etc... All these problems started after introducing threads.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dword
              wrote on last edited by
              #6

              Ha! thread an GUI are not working along: GUI should work only in the main thread. Only lengthy operations should be threaded.
              "Qt doc":http://doc.qt.nokia.com/4.7-snapshot/thread-basics.html#gui-thread-and-worker-thread

              1 Reply Last reply
              0
              • S Offline
                S Offline
                suma
                wrote on last edited by
                #7

                That i also know.. And more over im not doing anything related to GUI operation in worker thread.Its there in main thread only. But still

                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