I would like to create a “hidden” button of some sort that would exit the program in the event I need to access the system
There is no special support for this, but it is possible via User Script.
-
Add an Article Widget.
-
Set Image size to 0% (Widget settings - in the “Image” tab)
-
Turn off Show title (Font settings - in the “Block” tab)
-
Set the widget background color to a color with zero Alpha channel.
-
Press Edit button in the User script section and paste follow code:
import QtQuick 2.2
Item {
function init() { }
anchors.fill: parent
MouseArea {
anchors.fill: parent
onClicked: Qt.quit()
}
}
6. Save the project - this step is important as clicking on the widget before saving would quit the application.