Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Closed] how to make the program to be full screen in qt quick?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 929 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    menngogmail.com
    wrote on last edited by
    #1

    _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.

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

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

      Greetz, Jeroen

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        closing this one as a duplicate

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved