im using QQmlApplicationEngine with QQuickWindow for the application, and I cannot transparent main window. I want to set a splash before the application appears, and I use the Window component for it, and it should be transparent, but itβs not, my main.cpp
int main(int argc, char *argv[]) { Application app(argc, argv); QShookaClient shooka_client; QQmlApplicationEngine engine; engine.rootContext()->setContextProperty("shooka", &shooka_client); engine.load(QUrl("qrc:///shooka/shooka.qml")); QObject *topLevel = engine.rootObjects().value(0); QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel); window->show(); window->setFlags(Qt::FramelessWindowHint); window->setColor(Qt::transparent); return app.exec(); }
but setColor does not work in win7. I know there is a way for QDeclarativeView, or even I found a solution for QQuickview, and it seems to work for QQuickWindow, but no, can someone help me.
source share