Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68266

Restoring window with Qt::FramelessWindowHint causes flickering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.1
    • None
    • Qt 5.10.1 msvc2015_x64, Windows 10 x64

    Description

      I creating dialog which is borderless and have toolbar button:

      #include <QWidget>
      #include <QApplication>
      
      int main(int argc, char*argv[])
      {
      	QApplication app(argc, argv);
      
      	QWidget f1(nullptr,  Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
      	f1.show();
      	return app.exec();
      }
      

      When I restore dialog by clicking on toolbar, I see flickering title before expand.
      It's most minimal example, I've tried many other combinations of widgets/flags/styling.

      Bug was noticed by our customer, so it rather annoying.

      Attachments

        1. Flickering-title.gif
          97 kB
          Smirnov Vladimir
        2. Flickering-title.png
          49 kB
          Smirnov Vladimir

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mapron Smirnov Vladimir
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes