Hi everybody, I'm creating a Qt Quick application for Desktop, and we need to make it borderless and with custom shape. I'm doing this this way:
@int main(int argc, char *argv)
QApplication app(argc, argv);
QmlApplicationViewer viewer; viewer.setWindowFlags(Qt::FramelessWindowHint); viewer.setAttribute(Qt::WA_TranslucentBackground); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/ParesTest/main.qml")); viewer.showExpanded(); return app.exec();
The thing is, opacity on parent node on main.qml doesn't work. If this parent node is a Rectangle, and I set its opacity to 0, I'll get an white rectangle on desktop. Is there any option to set on QmlApplicationViewer or this isn't supported?
By the way, unfortunately, I'm using Windows 7..