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

Gabriele Kahlout gabriele at mysimpatico.com
Sat Jul 10 12:41:54 CEST 2010


So you suggest I use splashscreen, and that will achieve what I want for all
platforms except mac (the one i use!)?
And then what to do for mac?

2010/7/10 Tony Rietwyk <tony.rietwyk at rightsoft.com.au>

>  Hi Gabriele,
>
> This is the code that I use to do the opposite - I want the button to
> appear during the splash screen which, only occurs on mac.  For Windows I
> had to override the window flags set by QSplashScreen's contructor,
>
> splash = new QSplashScreen( pixmap );
>
> #if defined (Q_OS_WIN)
>  int style = GetWindowLong( splash->winId(), GWL_STYLE );
>  qDebug( "Splash style before = %8.8x", style );
>
>  int exstyle = GetWindowLong( splash->winId(), GWL_EXSTYLE );
>  qDebug( "Splash exstyle before = %8.8x", exstyle );
>
>  SetWindowLong( splash->winId(), GWL_EXSTYLE,
>   exstyle & ~WS_EX_TOOLWINDOW );
>
>  exstyle = GetWindowLong( splash->winId(), GWL_EXSTYLE );
>  qDebug( "Splash exstyle after = %8.8x", exstyle );
> #endif
>
> splash->show();
>
> My users where getting confused when popups occured during initialisation,
> and they had swapped away to another application - the popup would occur in
> the background, and the user has no way to bring it to the front!
>
> Hope that helps,
>
> Tony.
>
>
>  -----Original Message-----
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Gabriele Kahlout
> *Sent:* Saturday, 10 July 2010 18:55
> *To:* qt-interest at trolltech.com
> *Subject:* [Qt-interest] how to hide the taskbar/dock icon?
>
> 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
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.830 / Virus Database: 271.1.1/2990 - Release Date: 07/10/10
> 04:36:00
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
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) ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100710/eb4891f5/attachment.html 


More information about the Qt-interest-old mailing list