C
KeyboardLayoutLoader QML Type
Allows multiple pages of keys in the keyboard layout. More...
Import Statement: | import QtQuick.VirtualKeyboard.Components |
Inherits: |
Properties
- sourceComponent : alias
Detailed Description
This type is useful for keyboard layouts consisting of multiple pages of keys.
A single keyboard layout (a page) is defined by using the Component as a container. The active keyboard layout can then be changed by setting the sourceComponent property to a different value.
Example:
import QtQuick import QtQuick.Layouts import QtQuick.VirtualKeyboard // file: layouts/en_GB/symbols.qml KeyboardLayoutLoader { property bool secondPage onVisibleChanged: if (!visible) secondPage = false sourceComponent: secondPage ? page2 : page1 Component { id: page1 KeyboardLayout { // Keyboard layout definition for page 1 } } Component { id: page2 KeyboardLayout { // Keyboard layout definition for page 2 } } }
Property Documentation
sourceComponent : alias |
An alias to Loader.sourceComponent
Available under certain Qt licenses.
Find out more.