For Always on top scenario, you can have a look at Qt::WindowStaysOnTopHint (QWidget::setWindowFlags)
For Always on top scenario, you can have a look at Qt::WindowStaysOnTopHint (QWidget::setWindowFlags)
oh no i was just giving an example for always on top.
Mainly i want my applicatino never to loose focus but i don't know how to do it.
My GNU/Linux Blog:
http://funwithlinux.blogspot.com
Make it fullscreen or the only application using the X server.
try this.
first actived current widget
then
overload the event function
Qt Code:
{ { { this->hide(); } } }To copy to clipboard, switch view to plain text mode
Last edited by wysota; 18th September 2010 at 07:36.
maybe:
void QWidget::leaveEvent(QEvent * event)
{
close();
}
Bookmarks