Try the single inheritance approach.
http://doc.trolltech.com/4.2/designe...tance-approach
You have to declare onCompressClicked() as a slot to be able to connect a signal to it. This means also that onCompressClicked() has to be a method of a class derived from QObject (for example a widget).
Don't forget to add Q_OBJECT macro to your class definition.
http://www.qtcentre.org/forum/faq.ph...alslot_nodebug
Bookmarks