PagePool QML Type

Import Statement: import org.kde.kirigami

Properties

Detailed Description

A Pool of Page items, pages will be unique per url and the items will be kept around unless explicitly deleted. Instances are C++ owned and can be deleted only manually using deletePage() Instance are unique per url: if you need 2 different instance for a page url, you should instantiate them in the traditional way or use a different PagePool instance.

See also PagePoolAction.

Property Documentation

cachePages : bool

If true (default) the pages will be kept around, will have C++ ownership and only one instance per page will be created. If false the pages will have Javascript ownership (thus deleted on pop by the page stacks) and each call to loadPage will create a new page instance. When cachePages is false, Components get cached nevertheless.


items : list<Item> [since 5.84]

All items loaded/managed by the PagePool.

This property was introduced in 5.84.


lastLoadedItem : Item

The last item that was loaded with loadPage.


lastLoadedUrl : url

The last url that was loaded with loadPage. Useful if you need to have a "checked" state to buttons or list items that load the page when clicked.


urls : list<url> [since 5.84]

All page URLs loaded/managed by the PagePool.

This property was introduced in 5.84.