[Qt-components] Key navigation
Qi Liang
Liang.Qi at digia.com
Mon Jan 28 13:48:29 CET 2013
On Tue, Jan 8, 2013 at 4:52 PM, Alan Alpert wrote:
> Correct. And with components it seems better to make it a FocusScope.
But I heard that some of quick items just set the flag and not inherit from FocusScope, then it's not good only make it in a FocusScope.
I am trying to copy the focus concepts from widget world, with some help from Jan-Arve,
https://codereview.qt-project.org/44968 - Patch Set 4
Reference about Qt::FocusPolicy: http://qt-project.org/doc/qt-5.0/qtcore/qt.html#FocusPolicy-enum
At least the Tab and BackTab could work now, and has more priority than old KeyNavigation and Keys attached property. We could fix that later.
Talked with Jens today, maybe we should be better to be compatible with old focus behaviors. I think all children items under FocusScope, and all has "focus:true" and "focus:false" should be considered want to have focus(at least TabFocus). Alan, could you correct this?
And how about Qt::ClickFocus, I haven't touch anything about it, do you have something in your mind? I guess the items with MouseArea should be considered in.
BTW, and looks like this change only happens in qtdeclarative, should we also mention it in development mailing list?
Regards,
Liang
More information about the Qt-components
mailing list