probleme size window with UWP compiler



  • 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:

    0_1558021414974_ok.png

    and with the uwp (MSVC 2015) I have this:

    0_1558021476754_wrong.png

    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.



  • please Help me! I cant find what is wrong....


Log in to reply
 

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