[Qt-interest] how to hide the taskbar/dock icon?

Gabriele Kahlout gabriele at mysimpatico.com
Sun Jul 18 11:43:43 CEST 2010


That has not worked out for me.
The code is hosted here
http://screenshoter.svn.sourceforge.net/viewvc/screenshoter/.

The application is intended to be a background one which is activated
by key sequence.
So when launched it does nothing but listen to specified key
sequences. A window is created later. But even creating a window and
not showing it won't work.

Starting it as a QCoreApplication will not display the taskbar but
will not even listen to the hot keys.
So, what should I do in this case?

2010/7/13, Denis Akhmetzyanov <dakhmetzyanov at smartlabs.tv>:
> Hi,
> I've done such thing using:
>
> setWindowFlags(Qt::Tool);
>
> This flag hides taskbar tab for application, but reduces window title bar.
> Also I've heard a suggestion to use Qt::SubWindow flag for this purpose, but
> never tried myself.
>
>
> 2010/7/10 Gabriele Kahlout <gabriele at mysimpatico.com>
>
>> Hello,
>>
>> My application is a background process that occassionally shows a window
>> (set always on top). I'd like not to have a dock item/taskbar tab for it
>> at
>> all.
>> How can I do that?
>>
>> Couldn't find any reference in the doc, while previous posts don't work
>> (eg. Qt::Popup or splashscreen) or are incomplete.
>>
>> --
>> Regards,
>> K. Gabriele
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> Best regards,
> Denis Akhmetzyanov
>


-- 
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).




More information about the Qt-interest-old mailing list