StatefulWindow QML Type

StatefulWindow takes care of providing standard functionalities for your application main window. More...

Import Statement: import org.kde.kirigamiaddons.statefulapp
Inherits:

ApplicationWindow

Properties

Detailed Description

This includes:

  • Restoration of the window size accross restarts
  • Handling some of the standard actions defined in your AbstractKirigamiApplication (AboutKDE and AboutApp)
  • A command bar to access all the defined actions
  • A shortcut editor
import org.kde.kirigamiaddons.statefulapp as StatefulApp
import org.kde.kirigamiaddons.settings as Settings

StatefulApp.StatefulWindow {
    id: root

    windowName: 'Main'
    application: MyApplication {
        configurationView: Settings.ConfigurationView { ... }
    }
}

Property Documentation

application : AbstractKirigamiApplication

This property holds the AbstractKirigamiApplication of your application.

The default AbstractKirigamiApplication provides the following actions:

If you need more actions provide your own AbstractKirigamiApplication and overwrite AbstractKirigamiApplication::setupActions.

See also AbstractKirigamiApplication.


windowName : string

This property holds the window's name.

This needs to be an unique identifier for your application and will be used to store the state of the window in your application config.

See also WindowStateSaver.