How does the Window's Flag "Qt::Desktop"works?
Unsolved
QML and Qt Quick
-
hello there! I'm experimenting on creating a really simple desktop environment in Qt following this guide and I'm trying to create a Qt app to just show a wallpaper and with a few buttons to run some application
I'd like to do this in QML, using C++ just where needed (e.g.: run processes)
in the Window Type docs there is the
Qt::Desktop
flag:Qt::Desktop | Indicates that this widget is the desktop. This is the type for QDesktopWidget.
so I tried setting:
Window{ id: window flags: Qt.Desktop Rectangle{ color: "red" } }
it builds correctly, but when I try to run it it just displays nothing
What is the correct way to use this? are there better ways to do this?
I know I'm probably not going to finish this project, it's just meant to learn something new :D