Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.2.1
-
Windows 8 64-bit, MSVC 2012 and MinGW OpenGL, ATI Radeon HD 7770
Description
Steps to reproduce
- Set up a translucent window as shown below.
- Drag the window around.
- Minimize + restore the window.
- Goto 2
Results
"Phantom" images form within the window. Minimizing (or obscuring) the window resets things to normal, until the window is moved again.
I couldn't improve things by playing around with QQuickWindow::setDefaultAlphaBuffer() or QQuickWindow::clearBeforeRendering().
// main.cpp #include <QGuiApplication> #include <QQuickView> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQuickWindow::setDefaultAlphaBuffer(true); QQuickView view; view.setSource(QUrl("main.qml")); view.setColor(QColor(0, 0, 0, 0)); // For transparency view.show(); return app.exec(); }
// main.qml import QtQuick 2.0 Rectangle { width: 600 height: 480 color: "transparent" Rectangle { width: 300 height: 240 anchors.centerIn: parent color: "red" opacity: 0.5 } }
Attachments
Issue Links
- relates to
-
QTBUG-28214 Cannot make transparent (translucent) background for QQuickView
- Closed