[Qt-interest] Dynamic QMenuBar - passing a value to the slot in connect( )?

Shane Calimlim shane at wayforward.com
Thu Mar 24 19:08:29 CET 2011


Arguments must be passed from the point of signal emission, values
cannot be specified in the connect call.  In your case the triggered()
signal has no arguments, so the slot will not receive any.  You may
want to look into the sender() function.  You can get the object that
called the slot (in your case a QAction*) and query it to find out the
information you need.



More information about the Qt-interest-old mailing list