show app on systray

This commit is contained in:
Iuri Matias 2020-05-11 16:34:49 -04:00
parent 5c3b240cef
commit 122d102294
2 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1
import "./imports"
ApplicationWindow {
@ -11,6 +12,17 @@ ApplicationWindow {
title: "Nim Status Client"
visible: true
SystemTrayIcon {
visible: true
icon.source: "status-logo.png"
onActivated: {
applicationWindow.show()
applicationWindow.raise()
applicationWindow.requestActivate()
}
}
RowLayout {
id: rowLayout
width: parent.width

BIN
status-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB