Change dock icon on OS X with Qt 5
-
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-27175However, 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