[PyQt] Question about focus issue

Detlev Offenbach detlev at die-offenbachs.de
Sun Jan 18 12:30:55 GMT 2009


On Sonntag, 18. Januar 2009, Phil Thompson wrote:
> On Sun, 18 Jan 2009 11:39:03 +0100, Detlev Offenbach
>
> <detlev at die-offenbachs.de> wrote:
> > Hi,
> >
> > I have an issue related to determine the state of the focus for a widget.
> > The
> > situation is like this.
> >
> > I have a QWidget containing a QStackedWidget containing several widgets.
> > One
> > of these is a QTabWidget containing several QTreeViews. How can the top
> > level
> > QWidget be informed, if one of the sub(-sub)-widgets looses (or gains)
> > focus
> > without the need to have specialized subclasses.
>
> QApplication.focusChanged()

That is the solution. Thanks.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list