[Closed] how to make the program to be full screen in qt quick?



  • _I use Qt 5.2.1 with Qt Creator recently. I get full screen for qt widgets application with code:

    QApplication a(argc, argv);
    Widget w;
    w.showFullScreen();
    w.show();
    return a.exec();
    

    For qt quick application with code below, no full screen is displayed.
    QGuiApplication app(argc, argv);
    QtQuick2ApplicationViewer viewer;
    viewer.setMainQmlFile(QStringLiteral("qml/main.qml"));
    viewer.showFullScreen();
    viewer.showExpanded();
    return app.exec();

    Does anyone know how to get full screen in qt quick? Thanks a lot.



  • Hi,
    You might want to place this post in the QtQuick forum. This is more a desktop general forum.


  • Moderators

    closing this one as a duplicate


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.