Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Blurry QMainWindow's icon (under Linux)
Qt 6.11 is out! See what's new in the release blog

Blurry QMainWindow's icon (under Linux)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cidadao
    wrote on last edited by
    #1

    Hello,

    Im setting the main window's icon using setWindowIcon() and a 48x48 PNG image.
    However, no matter the icon's size I use (I tried up to 256x256) I always get a blurry icon showing up on my distro's dock. Im using elementaryOS. Please see the following screenshot:

    !http://s2.postimg.org/yvdn3hr3t/blurry_icon.png()!

    Why this happens and how can I solve it?

    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Did you add the .png via resource file .qrc?
      You should see possible versions like normal, active, selected in designer (windowIcon).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved