Re: Widget Focus

2011-06-23 Thread Milian Wolff
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

Re: Widget Focus

2011-06-22 Thread Steven Sroka
>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

Re: Widget Focus

2011-06-22 Thread Friedrich W. H. Kossebau
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

Re: Widget Focus

2011-06-22 Thread Milian Wolff
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

Re: Widget Focus

2011-06-22 Thread Kevin Funk
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/

Widget Focus

2011-06-21 Thread 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. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<