FocusScope and Plasma CheckBox

Kai Uwe Broulik kde at privat.broulik.de
Tue Jul 9 13:08:02 UTC 2013


Hi,

I'm currently trying to improve (implement at all) keyboard navigation for the 
battery monitor. It works quite well except that the sliders don't have any 
visual "has focus" indication.

What also gives me trouble is the checkbox.
I have code that looks like

FocusScope {
    id: brightnessItem
    focus: true

    Components.CheckBox {
        id: pmCheckBox
        anchors …
        focus: true
        checked: true
    }
}

Once the brightness item has focus (ie. I tabbed to it) I can turn the 
checkbox on and off using space or return. The checkbox itself, however, 
always looks like it's hovered, no matter if it has focus or not. What am I 
doing wrong here?

Best,
Kai Uwe


More information about the Plasma-devel mailing list