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. QOpenGLWidget FullScreen problem
Forum Update on Monday, May 27th 2025

QOpenGLWidget FullScreen problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 2.2k Views
  • 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
    MLGDN
    wrote on 13 Feb 2017, 12:38 last edited by
    #1

    I met a strange phenomenon. a simple widget with nothing but contains a QOpenGLWidget Window, when the application is in full screen, if
    I press the windows key on keyboard, the menu can not pop up, and the application will flash once. I create a menu in response to the right mouse button, it was also not pop up. when the application is not in full screen, it has no such problem. so, how can I to solve it, thanks for reply.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Feb 2017, 22:39 last edited by
      #2

      Hi,

      You should add which version of Qt you are using as well as OS you are running.

      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
        MLGDN
        wrote on 14 Feb 2017, 01:21 last edited by
        #3

        I run my application on windows 7, I am using Qt5.4.1, then I used Qt5.6.2 Qt5.7.1 Qt5.8 to verify this phenomenon, all the same, so I confused.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Feb 2017, 21:12 last edited by
          #4

          Do you know if you are using the Angle backend or the desktop OpenGL ?

          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
            MLGDN
            wrote on 15 Feb 2017, 02:54 last edited by
            #5

            I am sorry for knowing nothing for that . After I did some search, I found if I add a code like that
            QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL) or QCoreApplication::setAttribute(Qt::AA_UseOpenGLES) at the first of main funtion , then application works well on the version of Qt5.6.2 Qt5.7.1 Qt5.8 I own , but failed in Qt 5.4.1 .

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 15 Feb 2017, 08:20 last edited by
              #6

              For Qt 5.4.1 that might be related to the version of Angle. Note that this version of Qt is currently old, if you need LTS then you should go with the 5.6 series.

              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

              1/6

              13 Feb 2017, 12:38

              • Login

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