[Qt-interest] QGraphicsScene::focusOutEvent never occurs

Frederic Tingaud tingaud at gostai.com
Wed Nov 3 15:07:22 CET 2010


  Hi all,

I am working with Qt 4.6.3, on QGraphicsScene, and I am a little 
confused with focusInEvent and focusOutEvents for this class, as they 
are completely different from QWidget ones.
It took me some time to find out that focusInEvent will not occur if I 
don't call scene()->setFocus manually, but what I don't understand is 
why clearFocus doesn't trigger the FocusOut event and how I am supposed 
to trigger focusOutEvents for the scene. Am I supposed to use a sendEvent ?

Regards,

-- 
-------------------------------------------------------------------------------
Frederic TINGAUD
-------------------------------------------------------------------------------




More information about the Qt-interest-old mailing list