[PyQt] setting tab order custom widget
Hans-Peter Jansen
hpj at urpla.net
Fri Aug 14 09:49:02 BST 2009
Am Mittwoch, 8. Juli 2009 schrieb Hans-Peter Jansen:
> Am Dienstag, 7. Juli 2009 schrieb David Boddie:
> > On Tue Jul 7 15:20:02 BST 2009, Hans-Peter Jansen wrote:
> > > Am Dienstag, 7. Juli 2009 schrieb Hans-Peter Jansen:
> > > > Anybody with an idea, what designer needs to consider our widgets
> > > > in tab order setting?
> > > >
> > > > I tried to duck type my widget as a QCheckBox with checkable,
> > > > checked, text properties, but nothing takes an effect on this
> > > > issue.
> > >
> > > Got it, forgot about the focus policy! Time to get rid of my flu
> > > :-(..
> >
> > Hmm. It would be good to update the article to mention that, or to
> > update the example, at the very least. Possibly the best course of
> > action would be to add something to the discussion page for the article
> > on Qt Centre:
> >
> >
> > http://wiki.qtcentre.org/index.php?title=Designing_Custom_Controls_with
> >_P yQt
>
> Will do, when I figured, what's wrong with my account, which doesn't
> allow me to login to the wiki area...
>
> BTW, I succeeded with a combination of:
>
> self.setFocusProxy(self._firstEditable)
> self.setFocusPolicy(QtCore.Qt.TabFocus)
>
Finally done that now. Sorry for the delay..
http://wiki.qtcentre.org/index.php?title=Talk:Designing_Custom_Controls_with_PyQt
Unfortunately, there's no hint on the main page for the reader, that a
comment on the discussion page is available.
Pete
More information about the PyQt
mailing list