PDA

View Full Version : Menu problem using Designer



JimBrown
19th February 2007, 22:29
How do you connect an activated() signal from a menu item that you define in Designer to a slot?

In the Qt example docs, they create menus programmatically in the custom class files, so that the QAction instances are in the same place as the connect statements. When you define menus in Designer, the QAction instances are defined in the ui_className.h file. I don't believe that you are supposed to hand edit that file, and I can't see how to use the Action Editor or the "Edit Signals/Slots" edit mode to make connections.

Your advice is greatly appreciated.

jacek
19th February 2007, 22:47
http://www.qtcentre.org/forum/faq.php?faq=qt_designer_category#faq_qt_designer_s lots_inqt4
http://doc.trolltech.com/latest/designer-using-a-component.html