signals and slots in my own class

Philip Scott scotty at philipscott.freeserve.co.uk
Fri Jun 7 16:29:53 BST 2002


You also need to run moc on your program, and compile it's output; check out 
the QT documentation for 'other tools' on how to do this.

On Friday 07 June 2002 3:51 am, aqdas tahir wrote:
> I wrote a class which used slots but it does'nt
> compile under KDevelop 1.2. Look at the code:-
>
> /*  my_classes.h  */
>
> class my_class: public QObject
> {
> public slots:
> 	void a_slot (int);
> };
>
> void myclass :: a_slot (int value)
> {
> 	...........
> 	...........
> }
> ///////////////////////////////////////////
>
> /*       main.cpp       */
> #include "my_classes.h"
>
> int main (...., .....)
> {
> 	my_class an_object;
> 	.................
> 	...............
> 	return a.exec ();
> }
> ////////////////////////////////////////////
>
> Errors are invalid references to my_class virtual
> table and invalid references to my_class construcor
> and destructor
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> ___________________________________________________
> This message is from the kde mailing list.
> Account management:  http://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list