Hidden button to exit the program in the event

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.

  1. Add an Article Widget.

  2. Set Image size to 0% (Widget settings - in the “Image” tab)

  3. Turn off Show title (Font settings - in the “Block” tab)

  4. Set the widget background color to a color with zero Alpha channel.

  5. 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.


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.