How can I make a connection of Qt to X11 to show the Application GUI framwework in QML or in QWidget ?
-
Hey Guys, I am making a window manager. For window decoration I want to use Qt. I will prefer to use QML to me as it's more stylish, fast etc. etc. But if it's not possible in Qt Quick or possible in only QtWidgets then I will use QtWidgets.
Now, I want to make connection between X and Qt to get the Application GUI Framework and embed it into my QML or QtWidget. Does it's possible and if it is possible How can I do ?
Sorry for my mistakes, I am new at window manager development and didn't get ideas.
Thanks
-
I think you are not realizing that "just a window manager" is not as easy as you might think.
kwin is the one for KDE.
sddm for LXQt. -
What problem are you running into? There are several existing X11 window managers that use Qt, so nothing in Qt should prevent it from working. Ultimately, a WM is just another X11 client like any other application. There's nothing inherently "special" about it. A "connection between X and Qt" would basically just be creation a QApplication object. That will create a connection to the X Display.
QWindow can go to/frame a native window Handle: https://doc.qt.io/qt-5/qwindow.html#fromWinId You'll need something like that if you want to do things like reparenting windows from other processes