[Interest] Confused about High-DPI icons...

Matthew Woehlke mwoehlke.floss at gmail.com
Wed Mar 13 23:30:58 CET 2019


I'm trying to add High-DPI icons to my application.

Currently, I have a bunch of icons as resources, e.g.:

  :/icons/16x16/open
  :/icons/16x16/quit
  ...

>From reading the documentation, it *sounds* like all I should have to do
is add higher resolution icons with "magic" names:

  :/icons/16x16/open at 2x
  :/icons/16x16/quit at 2x
  ...

...but this doesn't work; I still get the actually-16x16 icons scaled up
2x. (Note: I am testing with QT_SCALE_FACTOR=2/QT_SCREEN_SCALE_FACTORS=2
as I don't have a "real" High-DPI display.)

Has anyone gotten this to work? Am I doing something wrong? Am I
misreading the documentation?

-- 
Matthew



More information about the Interest mailing list