Steven Sroka, 23.06.2011:
> >On 22 June 2011 03:29, Kevin Funk wrote:
> > Wednesday 22 June 2011, Steven Sroka :
> >> Is there any way to set focus to manually a widget when a window opens?
> >> I used QRadioButton::setFocus(Qt::ActiveWindowFocusReason), but it
> >> doesn't help, the first widget
>On 22 June 2011 03:29, Kevin Funk wrote:
> Wednesday 22 June 2011, Steven Sroka :
>> Is there any way to set focus to manually a widget when a window opens? I
>> used QRadioButton::setFocus(Qt::ActiveWindowFocusReason), but it doesn't
>> help, the first widget placed on the window always has focu
Mercredi, le 22 juin 2011, à 16:16, Milian Wolff a écrit:
> Note: Afair QMetaObject::invokeMethod is the preferred best-practice method
> to do this, as it does not require timer.
Though the implementation of QTimer::singleShot(...) these days forwards to
exactly that, so no longer such big deal
On Wednesday 22 June 2011 09:29:59 Kevin Funk wrote:
> Wednesday 22 June 2011, Steven Sroka :
> > Is there any way to set focus to manually a widget when a window opens? I
> > used QRadioButton::setFocus(Qt::ActiveWindowFocusReason), but it doesn't
> > help, the first widget placed on the window al
Wednesday 22 June 2011, Steven Sroka :
> Is there any way to set focus to manually a widget when a window opens? I
> used QRadioButton::setFocus(Qt::ActiveWindowFocusReason), but it doesn't
> help, the first widget placed on the window always has focus.
Hey,
Do you call setFocus *after* creating/
Is there any way to set focus to manually a widget when a window opens? I
used QRadioButton::setFocus(Qt::ActiveWindowFocusReason), but it doesn't
help, the first widget placed on the window always has focus.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<