[Interest] how to not activate an application when clicking on it

Vincent Boucher vin.boucher at gmail.com
Thu May 30 21:21:44 CEST 2013


I would like that by clicking on a given window of a Qt application, the application is not activated on Mac OS X while still being able to interact with it.

Why? Apple Keynote and MS PowerPoint fullscreen/presentation mode is exited when an always on top window is clicked. The fullscreen mode is not exited when Command-clicking the Qt application since it does not activate the on-top application. However, it is not convenient at all for end-users to have to Command-click each time they want to interact with the Qt application on top of a presentation. Moreover, QComboBox has troubles with Command-clicking (https://bugreports.qt-project.org/browse/QTBUG-29289): on Qt 5 the dropdown menu is not shown while the current item is highlighted.

As far as I understand, QEvents and are not meant for that (QEvent::WindowActivate is raised after window/application activation).

Skype is able to do it: when on-call and a small black toolbar "Current call" is shown on top of everything; clicking on this toolbar does not activate Skype.

I would like to modify Qt source code (and release modifications according to LGPL terms) in order to not activate the application when one of its windows is clicked (Mac OS X).

Do you think it is a feasible task?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130530/f77a0505/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3638 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130530/f77a0505/attachment.bin>

More information about the Interest mailing list