summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-08-01 13:47:34 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-08-03 03:09:54 +0200
commitfdfb360f4f60cbdb9ce7f29f424dad70f0679b17 (patch)
treefcbbb083b1285a4d7bbd3f1a5e2f04bb16dbbebf /src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp
parentc8a2794c441dfc6aa0ceec3ae847a8b1e353a89f (diff)
Windows: Use pixmaps at 1.0 scale for icons in the QPA menus
The Menu type from Qt Quick's libs.platform module on Windows uses the Win32-based menus implemented in the Windows QPA backend. Those are not High-DPI aware, so we cannot use a scaled up pixmap for the menu icons. The native Windows icon engine returns scaled pixmaps (defaulting to the QGuiApplication::devicePixelRatio value if not explicitly specified), so we have to explicitly ask for pixmaps with scale factor 1.0. Pick-to: 6.8 6.7 Fixes: QTBUG-127551 Change-Id: I191915127890ae265b169d5cd8d6c9f058e36a13 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp')
0 files changed, 0 insertions, 0 deletions