As for closing of window on mousepress event.... u can subclass and catch that event.
Also u can try for tooltip window.
Hope it helps
As for closing of window on mousepress event.... u can subclass and catch that event.
Also u can try for tooltip window.
Hope it helps
Thanks folks,
Qt::FramelessWindowHint was already in there, I tried several combo's as flags.
And that event was already subclassed, but got ignored on setting the Splashscreen flag.
I'm afraid this one is not so easy.
Greets, Jean.
As aamer4yu mentioned, try using Qt::ToolTip instead of SplashScreen. Basically, some combination of window flags will almost certainly do what you want..
Do you need this window to be focusable by the user? In other words, do they need to interact with it in some way or is it just a window to display animations?
If interaction is not necessary, you can use WS_EX_NOACTIVATE (on Windows at least). I use the following function for my stuff.
Qt Code:
/** * Set the window to never receive the keyboard focus. */ void MyQWidget::setNoActivate() { long exStyle = GetWindowLong(winId(), GWL_EXSTYLE) | WS_EX_NOACTIVATE; SetWindowLong(winId(), GWL_EXSTYLE, exStyle); }To copy to clipboard, switch view to plain text mode
You will have to include the windows headers.
JeanC (12th March 2008)
Hi pherthyl,
Well I am on ubuntu linux since some time, in windows borland cbuilder I have this program working fine. But I seldom use windows anymore, that's why I Qt.
No taksbar would have prioritiy over window interaction though.
Well never mind, I can live with it for the time being.
Thanks,
Jean.
Last edited by JeanC; 12th March 2008 at 10:18.
Bookmarks