AppViewLoader

Search for usage in LXR

AppViewLoader Class Reference
Inheritance diagram for AppViewLoader:

Properties

alias content
 

Additional Inherited Members

- Public Member Functions inherited from QtQuick.Loader
 loaded ()
 
object setSource (url source, object properties)
 

Detailed Description

A companion for the AppViews control, for lazy-loading the views to not drain too much resources.

Since
org.mauikit.controls 1.0

This controls inherits from QQC2 Loader, to checkout its inherited properties refer to the Qt Docs.

This element wraps a component into a loader that is active only if it is the next, current or previous view in use, or if it has already been created once. This component is useful when the AppViews has more then 4 different views to relief the loading of many views at the same time all at once.

This control will also display a progress bar element at the bottom of the view - indicating the progress of loading the hosted component.

See also
ProgressIndicator
Note
Remeber to set the AppView information, such as title and icon, using the attached properties.
See also
AppView
AppViews
{
{
AppView.title: i18n("Songs")
AppView.iconName: "view-media-track"
Item { } ///The child element to be used as the Component to be loaded.
}
}
A companion for the AppViews control, for lazy-loading the views to not drain too much resources.
The AppView class.
Definition appview.h:42
QML_ELEMENTQString title
The title of the view.
Definition appview.h:50
QString i18n(const char *text, const TYPE &arg...)
Note
To improve the efficiency of loading time, this control will load its component asynchronously. This can be disabled by setting asynchronous: false

You can find a more complete example at this link.

Definition at line 58 of file AppViewLoader.qml.

Property Documentation

◆ content

Component AppViewLoader::content
read

By default the single element declared as the child will be used as the component to be loaded.

Remarks
This is the default property

Definition at line 67 of file AppViewLoader.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.