[Qt-interest] ***SPAM*** Using QGraphicsWidget's QActions

Ramesh ramesh.bs at robosoftin.com
Thu Apr 22 15:56:10 CEST 2010


Qacti on is a handle to the menu item, using that you can connect to slots()

Qactionlist is the list of Qactions.. if you subclass the Qgraphicsview, and
you create several actions.. you will get
All the actions which you have created from the list..



-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Mihail Naydenov
Sent: Thursday, April 22, 2010 7:18 PM
To: qt-interest at trolltech.com
Subject: ***SPAM*** [Qt-interest] Using QGraphicsWidget's QActions

Hi, I guess Its a newbie one, but I cant figure out how to use
QGraphicsWidget's QActions in the most basic way...

The docs say
"The default use of the QAction list (as returned by actions()) is to create
a context QMenu"

What does it mean?
I kind of expected a Context Menu will popup with all actions() listed. Or
implies its common to (manually) create such menu.

Also it seams no events like Action added are received. Does QGraphicsWidget
receives *any* events from its actions.


In general, how I am supposed to use a widget's actions and how are they
different then regular "free standing" or child actions?

Thanks
MihailNaydenov




_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.



More information about the Qt-interest-old mailing list