[Qt-components] Key navigation
Alberto Mardegan
mardy at users.sourceforge.net
Tue Jan 8 08:22:32 CET 2013
On 01/07/2013 09:02 PM, Alan Alpert wrote:
> But presumably the root object in a Button component is a FocusScope,
> whereas that of a Label would not be. So that's how you automatically
> know which ones are focusable and which aren't, by the type of the
> root object.
I don't see why the Button should be a FocusScope. That probably doesn't
harm, but what is the advantage of declaring as a FocusScope an item
which doesn't have at least two focusable child items?
> http://qt-project.org/doc/qt-5.0/qtquick/qtquick-input-focus.html
> makes it look like any focusable component without a FocusScope is
> going to be acting funny anyways.
Maybe I read it carelessly, but I didn't find any hints there; what part
are you exactly referring to?
Ciao,
Alberto
More information about the Qt-components
mailing list