I made a QML application using a frameless window and implemented actions such as drag and drop and resize. But in this way, the application does not support native window manager functions such as windows aero snap or Gnome window manager functions. So, I searched and found this one , where someone found a way to support them in a frameless window using the win32 API. But is there a way to use this with a QML application or another way to use my own window manager functions?
I initialize a window from C ++ with this code:
QQmlApplicationEngine engine(QUrl("qrc:/qml/main.qml"));
QObject *topLevel = engine.rootObjects().value(0);
QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel);
window->setFlags(window->flags() | Qt::FramelessWindowHint);
if ( !window ) {
qWarning("Error: Your root item has to be a Window.");
return -1;
}
window->show();
EDIT: I would also like to use the shadow of the hidden window of the window manager, as in the example I am associated with, if possible.
EDIT:
: @Kuba Obers, , , . , , Qt .
user2282732