Tuesday, 15 January 2013

c++ - QT menubar action reciver cusom class -


I have the menu bar, when you create a new project and I have triggers () and set all senders I want to have the signal to be sent to a custom class. I have 3 static functions / slots in the class, but none of them are visible in the list.

  #ifndef CONTENT_H #define CONTENT_H # include & lt; QString & gt; # Include & lt; QObject & gt; Classroom Content: Public QObject {Q_OBJECT Public: QString filePath; material(); Public slot: Save static zero (content content, Qustring filepath); Static Content Load (Qestring FilePath); Static content new (); }; #endif // CONTENT_H  

Designer to connect signal and slot only between standard QT widgets , And those widgets that make them subclass. Here's a great example you'll have to use in the source:


No comments:

Post a Comment