... | ... | @@ -25,3 +25,23 @@ You can manually remove all files listed in `build/install_manifest.txt` and the |
|
|
```bash
|
|
|
cat install_manifest.txt | xargs sudo rm && cat install_manifest.txt | xargs -L1 dirname | xargs sudo rmdir -p --ignore-fail-on-non-empty 2> /dev/null
|
|
|
```
|
|
|
|
|
|
## How can I focus a QML item appropriately?
|
|
|
|
|
|
Especially text fields should often be focused in order to achieve a more fluent work flow.
|
|
|
You can use `forceActiveFocus()` for that.
|
|
|
It sets `activeFocus` to `true`.
|
|
|
But another item might be focused after you called `forceActiveFocus()`.
|
|
|
You can determine which item is focused:
|
|
|
|
|
|
```
|
|
|
Connections {
|
|
|
target: applicationWindow()
|
|
|
|
|
|
function onActiveFocusItemChanged() {
|
|
|
print(applicationWindow().activeFocusItem)
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Afterwards, you are able to force the `activeFocus` as intended (e.g., by calling `forceActiveFocus()` right after `activeFocus` of the other item changes to `true`). |