Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to make full screen in qt quick?

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles