[Interest] Dynamically change dock icon under OS X

Bob Hood bhood2 at comcast.net
Wed Apr 15 21:35:40 CEST 2015


On 4/15/2015 1:19 PM, Samuel Gaist wrote:
> On 15 avr. 2015, at 21:00, René J.V. Bertin <rjvbertin at gmail.com> wrote:
>
>> On Wednesday April 15 2015 11:40:37 Bob Hood wrote:
>>
>>> Thanks, Oliver.  I'll see if I can track that down in the Creator code.
>>> You're likely right, it'll probably be Cocoa-specific.
>> Seems my message that also referred to Qt Creator never made it to the list.
>>
>> You can also have a look at the systray example; it works just fine on OS X.
> Hi,
>
> As for the dock icon, no need to go too deep in Qt Creator, you can take a look at http://doc.qt.io/qt-5/qtmac.html#setBadgeLabelText

Hi, Samuel.

Yes, I found that code in Qt Creator (I believe it was in 
src/plugins/coreplugin/progressmanager/*).  However, I actually want the dock 
icon completely removed with only the systray icon present.  So, as it turns 
out, manipulating the dock icon isn't really the approach I want to take.



More information about the Interest mailing list