[Qt-interest] Basic question regarding QAction
prashant bhutani
prashantbhutani2008 at gmail.com
Tue Mar 22 12:12:54 CET 2011
On Tue, Mar 22, 2011 at 4:06 PM, Mihail Naydenov <mlists at ymail.com> wrote:
> Hello,
>
Hi
>
> Is there a problem adding one action to multiple widgets if the action has
> a
> shortcut?
>
AFAIK, there should not be any problem if you consider the hierarchy of the
widgets while calling the action. Because there could be some actions which
can make your application crash if worked out on parent widget, which
somehow kills the child widget, and then child widget (which is now killed)
is asked to perform the same action.
>
> Will the shortcut be triggered twice?
>
The action will work on the highlighted widget only.
PS :: sorry, If I am wrong.
>
> Thank You
> MihailNaydenov
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
Prashant Bhutani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110322/97463a6f/attachment.html
More information about the Qt-interest-old
mailing list