5

I've created a Qt5 app using PyQt5, now I am adapting images to be compatible with Retina Display on OS X. I've creating duplicates of them with the @2x modificator, but the fact is that I've not been able to make the tray icon to look correctly, I think it is because I am using the image in the wrong size. Does anybody have any idea?

Blurry icon

k-ter
  • 958
  • 1
  • 8
  • 20
  • I think this question and answer will answer your question too. http://stackoverflow.com/questions/12714923/os-x-icons-size – 54an3 Jun 17 '14 at 18:07
  • Hi, I've tried the sizes mentioned there but it haven't worked, I still see the icon blurry... Any idea? Does anybody know if unlike the other images, Qt is rendering the tray icon in the wrong way? – k-ter Jun 18 '14 at 01:54
  • You're not telling us what version of Qt you're using. Most likely, the version you're using doesn't have retina support implemented yet for the menubar ("tray") icon. I don't know offhand if the most recent release at the time - Qt 5.3 - has this fixed or not. You may want to check if a bug report exists for this, if not report a bug. – Kuba hasn't forgotten Monica Jun 19 '14 at 21:12
  • Hi, I am using 5.3.0-stable, sorry I couldn't find anything about that in the changelog. I don't know whether I did wrong or it has not been fixed – k-ter Jun 22 '14 at 15:24

1 Answers1

1

I don't know if this works with Qt, but you can use a combined file with Xcode.

Within Terminal, you can combine both icons by executing this command:

tiffutil -cathidpicheck tray_icon.png tray_icon@2x.png -out tray_icon.tiff
Baris Atamer
  • 700
  • 7
  • 13