title: Qml application is not fitting when you change resolution
body: <p>I have a simple qml ApplicationWindow program with "Maximized" visibility. The application fits properly on my screen when the PC setting is below:</p>
  
  <p>Resolution : 1920x1080 (Recommended)
  Scale      : 100%
  screenshot : Resolution_1920x1080_scale_100_screenshot.JPG </p>
  
  <p>But,when I configured the laptop’s setting “Scale and Layout” to 100% and laptop display at the highest resolution (1366 x 768), the right side of my application is being cut.</p>
  
  <p>screenshot (which has issue): Resolution_1355x768_scale_100_screenshot.JPG</p>
  
  <p>Any suggestions to solve it??</p>
  
  <p>Qml:</p>
  
  <pre><code> import QtQuick 2.14
   import QtQuick.Controls 2.14
  
  ApplicationWindow {
     id:root
     visible: true
     visibility: Window.Maximized//"Maximized"
     title: qsTr("Hello World")
     Rectangle {id:red; width: 900; height: 350; color: "red" }
     Rectangle {id:yellow; width: 900; height: 350; color: "yellow"; anchors.left: red.right }
   }
  </code></pre>
  
  <p>main.cpp</p>
  
  <pre><code>#include &lt;QGuiApplication&gt;
  #include &lt;QQmlApplicationEngine&gt;
  int main(int argc, char *argv[])
  {
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);
    QQmlApplicationEngine engine;
    const QUrl url(QStringLiteral("qrc:/main.qml"));
    QObject::connect(&amp;engine, &amp;QQmlApplicationEngine::objectCreated,
                   &amp;app, [url](QObject *obj, const QUrl &amp;objUrl) {
      if (!obj &amp;&amp; url == objUrl)
          QCoreApplication::exit(-1);
    }, Qt::QueuedConnection);
    engine.load(url);
    return app.exec();
  }
  </code></pre>
  
  <p>Below is the screenshot of application with resolution 1920x1080 setting. Both Red and Yellow rectangles are of same size.</p>
  
  <p><a href="https://i.stack.imgur.com/B2qkM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B2qkM.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/54wX5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/54wX5.jpg" alt="enter image description here"></a></p>
  
  <p>Above one is the screenshot of application with resolution 1366x768 setting. Both Red and Yellow rectangles are of same size. But, yellow half part is not visible with these setting.</p>