How do I make my custom button element focusable?
Solved
QML and Qt Quick
-
I have a bunch of custom text input elemnts with TextInput inside of them. I can switch focus with tab easily. How do I get the same functionality with my custom button element? It only consits of Rectangles and MosueAreas. I can set the focus to true manually in the code, but when using Tab it never gets focus.
-
@archeria Set activeFocusOnTab to
true
for each Item. Then to check if Item is in focus use:onFocusChanged: if(focus) console.log("In Focus")