Qt QQuickView设置成无边框无标题栏
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQuickView> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQuickView view; view.setFlags(Qt::FramelessWindowHint); // 窗口无边框,无标题栏 view.setSource(QUrl("qrc:/main.qml")); view.show(); return app.exec(); }