Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. probleme size window with UWP compiler
Forum Updated to NodeBB v4.3 + New Features

probleme size window with UWP compiler

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
quickviewqmlwindows rt
2 Posts 1 Posters 471 Views
  • 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.
  • G Offline
    G Offline
    Guigiidre
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Guigiidre
      wrote on last edited by
      #2

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

      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