WindowStateSaver QML Type
Creates a KWindowStateSaver in QML, and assigns it to the window it's parented to. More...
| Import Statement: | import org.kde.config |
| Since: | 6.5 |
Properties
- configGroupName : string
Detailed Description
Functions exactly as KWindowStateSaver in C++, as it's a small wrapper around it.
The generated file containing the position and size of the application will be stored under ~/.local/state/appnamerc, where appname derives from the QCoreApplication::setApplicationName or the component name in KAboutData::KAboutData.
import org.kde.config as KConfig
Kirigami.ApplicationWindow {
id: root
title: i18n("My Window")
KConfig.WindowStateSaver {
configGroupName: "MainWindow"
}
}
See also KWindowStateSaver.