First we’ll look a the file that wraps the Plasma5 widget’s config page. The file is called AppletConfiguration.qml in the
Since the main item in the this file is called
id: root, my first attempt was to log it in my config page.
However, unexpectedly, it logs the StackView instead of a AppletConfiguration instance.
If we try logging
console.log('mainColumn', mainColumn) we get:
And if we try logging the parent item of
mainColumn like with
console.log('appletConfiguration', mainColumn.parent) we get:
Now that we’ve gotten a way to reference the main item of the config window, we could resize the window. Or we could hide the keyboard shortcut tab.
AppletConfiguration.qml is private code, not a public API, so it may change without notice.