[PyQt] setting tab order custom widget
Hans-Peter Jansen
hpj at urpla.net
Tue Jul 7 23:33:45 BST 2009
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)
Pete
More information about the PyQt
mailing list