export item
This commit is contained in:
parent
18ed35d2d8
commit
b3db7ce371
@ -29,13 +29,19 @@ Description:
|
|||||||
For instance the contents of the tabs of a TabBar can be loaded only when they become the current page
|
For instance the contents of the tabs of a TabBar can be loaded only when they become the current page
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
bool when: boolean condition that tells when to load the declarative component
|
bool when:
|
||||||
variant source: it can be a string with a path name of a qml file or a Component. It's the component that will be loaded when "when" is true. If the component changes the old instantiated component will be deleted and the new will be loaded instead.
|
Boolean condition that tells when to load the declarative component
|
||||||
|
|
||||||
|
variant source:
|
||||||
|
It can be a string with a path name of a qml file or a Component. It's the component that will be loaded when "when" is true. If the component changes the old instantiated component will be deleted and the new will be loaded instead.
|
||||||
|
|
||||||
|
Item item: the item instantiated from component, if any.
|
||||||
**/
|
**/
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
property alias when: loader.when
|
property alias when: loader.when
|
||||||
property alias source: loader.conditionalSource
|
property alias source: loader.conditionalSource
|
||||||
|
property alias item: loader.item
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: loader
|
id: loader
|
||||||
|
Loading…
x
Reference in New Issue
Block a user