Skip to content

Conversation

@crwood
Copy link
Member

@crwood crwood commented May 9, 2019

This should work on Windows but won't (yet?) on macOS. See:

https://doc.qt.io/qt-5/qsystemtrayicon.html#messageClicked

(Partially) closes #207

@crwood
Copy link
Member Author

crwood commented May 9, 2019

It looks like this solution will not work. From the Qt docs for QWidget.activateWindow():

On Windows, if you are calling this when the application is not currently the active one then it will not make it the active window. It will change the color of the taskbar entry to indicate that the window has changed in some way. This is because Microsoft does not allow an application to interrupt what the user is currently doing in another application.

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

Successfully merging this pull request may close these issues.

"Clicking a desktop notification does nothing"

2 participants