[Interest] Leave focus after popup

igor.mironchik at gmail.com igor.mironchik at gmail.com
Wed Mar 12 16:22:46 CET 2014


Hi. I’ve found the solution...

I create widget with next flags:

Qt::ToolTip | Qt::FramelessWindowHint |Qt::WindowDoesNotAcceptFocus |Qt::WindowTransparentForInput |Qt::NoDropShadowWindowHint
And install event filter to the qApp...
It works.


From: igor.mironchik at gmail.com 
Sent: Wednesday, March 12, 2014 1:01 PM
To: interest at qt-project.org 
Subject: Leave focus after popup

Hi.

Is it possible to leave the focus on the parent widget when he pops up another widget?

And is it possible to leave focus on the parent widget and receive mouse events in pop upped widget?

If to say more concrete, then I want to popup cursor shifter in QLineEdit on mouse click, and when user moves this shifter cursor in QLineEdit changes it’s position respectively. I almost did it, but when shifter pops up then QLineEdit loses focus and cursor doesn’t flashes...

Any ideas? May be there is some widget’s flags for this task, or so on?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140312/e1957658/attachment.html>


More information about the Interest mailing list