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. Change dock icon on OS X with Qt 5
Forum Updated to NodeBB v4.3 + New Features

Change dock icon on OS X with Qt 5

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 506 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.
  • M Offline
    M Offline
    Martin Fla
    wrote on last edited by
    #1

    Hi there,

    I'm moving one of my apps from Qt 4.8 to Qt 5.4.
    Using Qt 4.8, I could easily update the dock icon with code like this :
    @
    qApp->setWindowIcon(style()->standardIcon(QStyle::SP_MessageBoxWarning));
    @

    This line of code has no effect with Qt 5.0 to Qt 5.4.

    It seems I'm not the only one to have this problem :
    https://bugreports.qt.io/browse/QTBUG-27175

    However, Qt Creator 3.3 itself updates his dock icon (showing building progress for example), so a workaround exists. Does anyone know it ?

    Thanks for your help,

    Martin

    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