PDA

View Full Version : [qt4] Task Bar Type Behavior Wanted



KMAPSRULE
27th April 2006, 18:47
What I need is for my application to behave like the Windows task bar or KDE/Gnome Panels, where the usable desktop area for other applications shrinks when my application is up and running. "Alway on top" is not enough as I cant have parts of Other Applications hidden behind mine.

So I may just be having a really dumb day, but I cant seem to determine how to do this :( .
I would need this to work on both Win2k and various flavors of Linux with QT4, even if someone only knows how to do this in QT 3,looking at a QT3 solution would help solve it for QT4.





int main( int argc, char * argv[] )
{

Qt::WFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;

QApplication app(argc, argv);

mainWindow mw( 0,flags );
mw.resize( QApplication::desktop()->width() , 200 );

mw.show();
return app.exec();

}//end main()


Thanks in advance

wysota
27th April 2006, 19:50
http://www.qtcentre.org/forum/showthread.php?t=1493

KMAPSRULE
27th April 2006, 20:12
Thanks, looks like it will solve the linux side of the House, didnt notice that thread while i was searching