Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.1, 5.2.1
-
None
-
Windows XP
-
319e90dcdde7e0867a528105193b0b26d2044f92 (stable, 7.5.2014, 5.3.1)
Description
I use mstsc(Microsoft terminal service client) to connect to a machine of Windows XP, and run QtQuick1 programs like this:
import QtQuick 1.1 Rectangle { width: 100; height: 100 color: "red" }
Normally it works correct, but when I use 'setAttribute(Qt::WA_TranslucentBackground)', and runs the program remotely, it runs with no window shown.
QDeclarativeView view;
QPalette palette = view.palette();
palette.setColor(QPalette::Base, Qt::transparent);
view.setPalette(palette);
view.setAttribute(Qt::WA_TranslucentBackground);
view.setWindowFlags(Qt::FramelessWindowHint);
view.setSource(QUrl::fromLocalFile("main.qml"));
view.show();
I can find the program running because it is on the taskbar, but it just has no window shown. I use spy++ and find that the program actually does have a window, which I can't see.
It runs correctly when I run it locally.(without mstsc)
Besides, comment 'setWindowFlags(Qt::FramelessWindowHint);' will make the window visible, but I usually use FramelessWindow.