improper scaling of Qt Desktop application in windows 10
<p>I'm writing a simple Qt (Widgets) Gui application for windows 10. I'm using the 5.6.0 beta version of Qt.</p>

<p>The problem I'm having is that it isn't scaling right to the screen of my surfacebook at all:</p>

<p><a href="https://i.stack.imgur.com/Bx2Mk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bx2Mk.png" alt="enter image description here"></a></p>

<p>It's a bit hard to tell because SO scales the image, but notice how small the dock widget title bar controls are relative to the window title bar controls.</p>

<p><a href="http://doc.qt.io/qt-5/scalability.html" rel="noreferrer">This link</a> from Qt talks about scaling, but it's mostly focuses on qml/qtQuick and mobile applications in general, and additionally seems to imply that in a desktop QtWidgets application, <code>QPainter</code> will automatically determine the proper scaling, which it clearly is not.</p>

<p>What's the best way to ensure that desktop, non-qml Qt applications scale properly on high-DPI monitors, specifically with windows 10?</p>