In Qt4.0.0 & Qt4.0.1 I used flag Qt::FramelessWindowHint to get off button on taskbar. But now in 4.1.0 & 4.1.1 it doesn't work. Can anyone explain what happened and what to do?
Qt4.1.1 with MinGW on WinXP Pro.
In Qt4.0.0 & Qt4.0.1 I used flag Qt::FramelessWindowHint to get off button on taskbar. But now in 4.1.0 & 4.1.1 it doesn't work. Can anyone explain what happened and what to do?
Qt4.1.1 with MinGW on WinXP Pro.
Keep trying to find out but without any result yet![]()
Can anybody help me with this?
could you post some code to see how you set this flag?
Look at this thread that I posted where I use it succesfully:
http://www.qtcentre.org/forum/showthread.php?t=2039
Last edited by SkripT; 3rd May 2006 at 16:20.
In constructor of my class:
Qt Code:
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);To copy to clipboard, switch view to plain text mode
what do you mean get off button on taskbar....be more clear.Originally Posted by L.Marvell
also please stick the code as much as possible so that we can relate to your problem...your function declaration will not help us understand your problem!
Nupul
I mean that I don't need button of my application on windows' taskbar. In earlier versions of Qt the same string of code setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); worked perfect: app was without titlebar and without that button on taskbar. Now the button appears but it doesn't have context menu.
See attached screenshot.
AFAIK Qt::FramelessWindowHint is not useful for what you want to achieve. It only creates a window without the buttons (maximize, minimize and close) and the border around the window....
But worked in Qt < 4.1.x. Anyway, what to do now? Who knows?Originally Posted by SkripT
Have you tried to set some other window flags? Qt::Popup, Qt::SplashScreen,...Originally Posted by L.Marvell
I've tried all of flags but without any good resultOriginally Posted by SkripT
![]()
Ok, it seems Qt::Tool creates window without taskbar button, but there is another problem. When clicking on "Ok" or "Cancel" of any dialog that belongs to app - dialog closes but main window closes too
If anybody wish he can download sources at http://www.badongo.com/file/596445 and look in. Window flags set in clockwindow.cpp at 27 row. Try to play with it.
Have you tried to open the dialogs as top level (with no parent)?
Nope but will try. Thanks for advice!Originally Posted by SkripT
Boom... Main window closes even when pressing "Ok" in standard About Qt dialog![]()
It seems it doesn't matter has dialog parent or not. Main window closes anyway.It's pitty
Well all Ok. Works with setQuitOnLastWindowClosed(false).
Bookmarks