Borderless transparent QQuickView
-
Hello, I've recently started to mess around with Qt, but i ran into something I can't seem to be able to solve: I'm trying to make a borderless QtQuick 2.0 project with rounded borders, so i wanted to get rid of the white background behind my actual UI. This is my code from main(I actually created a new project for testing, this is from there):
@
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;viewer.setFlags(Qt::FramelessWindowHint); viewer.setColor(QColor(0,0,0,0)); viewer.setMainQmlFile(QStringLiteral("qml/main.qml")); viewer.showExpanded(); return app.exec();
}
@
My problem is the following: when I start the program, the UI is completely invisible(and it stays invisible unless the alpha on the QColor is 255. The problem is only there if the FramelessWindowHint flag is set. Is there any way around this? Or is it just me doing something wrong? Thanks in advance