Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] System tray icon support? #8

Open
MoritzMaxeiner opened this issue Dec 22, 2015 · 5 comments
Open

[enhancement] System tray icon support? #8

MoritzMaxeiner opened this issue Dec 22, 2015 · 5 comments

Comments

@MoritzMaxeiner
Copy link
Contributor

Native QML does not provide support for system tray icons, instead one needs to leverage QT and bind to QML as shown here or here. Would it be possible to get support for this into dqml?

Specifically, the functionality I am after is this:
One tray icon with two actions "Show" and "Quit", the former of which shows a specific window (maybe by its QML id?) if it is not yet shown (and focuses it), while the latter quits the QML application. It would also be nice if tray's icon could be loaded from QT's Resource system.

@filcuc
Copy link
Owner

filcuc commented Dec 23, 2015

Yes, i've to decide if to put this functionality in the DOtherSide (for simplicity of the implementation) or to put it in a different QML module (better) that a user can use by adding the module in the qml import path.

@MoritzMaxeiner
Copy link
Contributor Author

Cool! Would the latter mean that I would need to load some (C++) shared library that connects to Qt or would this be done completely in QML? Sorry if that should be obvious, but I'm not sure which you mean.

@filcuc
Copy link
Owner

filcuc commented Dec 24, 2015

Yes, basically something like QtQuickControls (so a shared library to put in your import path)

import DOtherSide.Extra 1.0

Window {
  SystemTrayIcon {
    visible: true
    menu: Menu { ... }
  }
}

@MoritzMaxeiner
Copy link
Contributor Author

Hm, I assume Qt takes care of loading the shared library dynamically (from where ever the module lies)?

@filcuc
Copy link
Owner

filcuc commented Dec 24, 2015

yes correct

2015-12-24 12:41 GMT+01:00 Moritz Maxeiner notifications@github.com:

Hm, I assume Qt takes care of loading the shared library dynamically (from
where ever the module lies)?


Reply to this email directly or view it on GitHub
#8 (comment).

Filippo Cucchetto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants