Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0 RC1
-
None
-
5d037b17300e814e0e287edfe849badd4e253c1b
Description
Using the code sample below on Ubuntu, I see two problems:
- First problem: When the title of the checkable groupbox has the focus, after pressing tab, not item gets focus. The first checkbox gets focus after 2 tab from the title
- Second problem: When the groupbox is not checkable, its title gets nevertheless focus on tab (title gets highlight)
To reproduce, using the code sample below, you can follow the steps:
1 - From the text edit, press tab
2 - first GroupBox is checkable with activeFocusOnTab, the title gets focus as expected
3 - press tab
=> problem: no focused item
4 - press tab until checkbox2 gets focus out.
5 - GroupBox has activeFocusOnTab but title is not checkable
=> Problem: the title gets active focus on tab, but only the checkboxes should get focus (see screen shot)
import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 ApplicationWindow { width: 360 height: 360 ColumnLayout { TextField { text: "hello" } GroupBox { checkable: true title: activeFocus ? "has active focus" : "has not active focus" activeFocusOnTab: true RowLayout { CheckBox { text: activeFocus ? "has active focus" : "checkbox1" } CheckBox { text: activeFocus ? "has active focus" : "checkbox2" } } } GroupBox { checkable: false title: activeFocus ? "has active focus" : "Title should not get focus" activeFocusOnTab: true RowLayout { CheckBox { text: activeFocus ? "has active focus" : "checkbox1" } CheckBox { text: activeFocus ? "has active focus" : "checkbox2" } } } } }