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();
}

 

posted @ 2019-04-15 17:02  代萌  阅读(1060)  评论(0编辑  收藏  举报