[Qt-interest] how to hide the taskbar/dock icon?
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Sat Jul 10 12:06:25 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100710/3764007e/attachment.html
More information about the Qt-interest-old
mailing list