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. Full screen makes the screen flickers on Windows 8
Forum Updated to NodeBB v4.3 + New Features

Full screen makes the screen flickers on Windows 8

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.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.
  • bunjee207B Offline
    bunjee207B Offline
    bunjee207
    wrote on last edited by bunjee207
    #1

    Grettings Qt community,

    For some reason when going full screen (or resizing the window to the entire screen) the screen flickers: it goes to black for a second.

    I'm on Windows 8 and it does not seem to happen on an application like chromium for instance.

    Is there some kind of flag to disable that behavior ?

    Thanks ♥.

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

      Hi and greetings
      That sounds a bit odd. Its not expected and there is no flag.
      Are we talking QML or QWidgets and what version of Qt?
      Anything openGl ?

      1 Reply Last reply
      1
      • bunjee207B Offline
        bunjee207B Offline
        bunjee207
        wrote on last edited by
        #3

        We are talking QML + Frameless Window.

        Here is a related post: https://forum.qt.io/topic/68132/flicker-with-qopenglwidget-when-fullscreen-and-frameless-window.

        1 Reply Last reply
        1
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Ok seems to be a plain bug.

          1 Reply Last reply
          0
          • bunjee207B Offline
            bunjee207B Offline
            bunjee207
            wrote on last edited by bunjee207
            #5

            This is the workaround I'm using with Qt 4:

            #ifdef Q_OS_WIN
                // FIXME Windows: Workaround for opengl full screen flicker.
                q->setViewportMargins(0, 0, -1, 0);
            #endif
            

            Is there something equivalent with the QQuickWindow ?

            Note: As far as I can tell this is related to Windows 8 + OpenGL + double buffering. I don't have the issue when using single buffering.

            1 Reply Last reply
            1

            • Login

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