[Interest] Possible to know if QAction was triggered by QKeySequence or click?

william.crocker at analog.com william.crocker at analog.com
Wed Oct 30 11:25:55 CET 2013

On 10/30/2013 06:12 AM, Philipp Kursawe wrote:
> I want to detect how users usually work with the application. Do they click more
> or use the shortcuts. This way we can optimize the UI.

You can try installing a global event filter on the app.
You would then see all events go by, some of which would be
short-cuts, button-widget enters etc. You could then correlate
that to action triggers to get an idea of how the actions
are being triggered.


> On Wed, Oct 30, 2013 at 11:09 AM, Bo Thorsen <bthorsen at ics.com
> <mailto:bthorsen at ics.com>> wrote:
>     Den 30-10-2013 10:59, Philipp Kursawe skrev:
>     >  Any way to find that out?
>     No. Just like you can't know if it's from the menu or toolbar or some
>     other way. An action is triggered, that's the only thing that matters.
>     Maybe you should try and describe what it is you want to achieve with
>     all of those things. It seems like you are trying to take control in a
>     way that you're not supposed to do. Frameworks always have their ways of
>     doing some things, and if you deliberately try and bend them to your
>     way, you are in for a frustrating ride.
>     Bo.
>     --
>     Bo Thorsen, European Engineering Manager, ICS
>     Integrated Computer Solutions. Delivering World-Class Applications
>     http://ics.com/services
>     _______________________________________________
>     Interest mailing list
>     Interest at qt-project.org <mailto:Interest at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list