probleme size window with UWP compiler
Unsolved
QML and Qt Quick
-
Hi all I 'm facing a strange behaviour when I try to run a code with a UWP compiler.
My code is:QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); const QString mainQmlApp = QStringLiteral("qrc:///main.qml"); QQuickView view; view.setSource(QUrl(mainQmlApp)); view.setResizeMode(QQuickView::SizeViewToRootObject); view.setPosition(0,0); view.show();
and main.qml
Rectangle { id:dialog_dongle objectName: 'popup' width:200;height:200 border.color: 'blue' border.width: 1 }
with the mingw compiler I have this result that is ok:
and with the uwp (MSVC 2015) I have this:
It seems that in the last case the QuickView is inserted in another window. What is wrong ?
What do I have to do to achieve my goal and have the result showed in the first picture with the the UWP compiler ?Thank ,you in advance for your answer.