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

Qml flicker on animation in frameless QQuickView

    XMLWordPrintable

Details

    Description

      main.cpp

      #include <QGuiApplication>
      #include <QQuickView>
      
      int main(int argc, char *argv[])
      {
          QGuiApplication app(argc, argv);
          QQuickView *view= new QQuickView;
          view->setFlags(Qt::FramelessWindowHint);
          view->show();
          view->setSource(QUrl(QStringLiteral("qrc:/main.qml")));
          return app.exec();
      }
      

      qmlfile:

      import QtQuick 2.0
      
      Rectangle {
          width: 100
          height: 100
          color: "#80808080"
      
          Rectangle {
              width: 10
              height: 10
              anchors.centerIn: parent
              RotationAnimation on rotation {
                  duration : 15000
                  easing.type: Easing.Linear
                  loops: Animation.Infinite
                  from: 0
                  to: 360
              }
          }
      }
      

      The transparent background flickers, but only with an animation.
      Without FramelessWindowHint everthing is fine.
      See https://youtu.be/6fg-KJq9caU

      Attachments

        Activity

          People

            Unassigned Unassigned
            manuelschneid3r Manuel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: