[Qt-interest] QAction.

Alexandre Beraud aberaud at infflux.com
Wed Feb 18 13:54:41 CET 2009


Hi,

You can try to make a qobject_cast on the parentWidget() and check 
whether it is null or not.

Regards,

Alex



Shabd Swarup V a écrit :
>
> Hi,
>
>  
>
> If I have access to a *QAction* object, is there a way to find out 
> whether that action is part of a MenuBar, ToolBar or a PopUpMenu etc.
>
> Please let me know.
>
>  
>
> Thanks in advance.
>
>  
>
> Regards,
>
> Shabd
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   


-- 
BERAUD Alexandre
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com





More information about the Qt-interest-old mailing list