signals and slots in my own class

Kevin Krammer kevin.krammer at gmx.at
Fri Jun 7 08:30:50 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, 7. June 2002 05:51, aqdas tahir wrote:
> I wrote a class which used slots but it does'nt
> compile under KDevelop 1.2. Look at the code:-

You forgot the Q_OBJECT macro

>
> /*  my_classes.h  */
>
> class my_class: public QObject
> {
	Q_OBJECT

> public slots:
> 	void a_slot (int);
> };

> Errors are invalid references to my_class virtual
> table and invalid references to my_class construcor
> and destructor

After adding the macro, make sure the Makefiles are rebuilt.
You can use the KDevelop option to rebuild everything, including a new 
configure, or you go to the directory where the file resides and
#> touch Makefile.am

This will result in the rebuilinf of the asociaed Makefile

BTW, development question are better suited on kde-devel

Cheers,
Kevin
- -- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer at gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9AGEvnKMhG6pzZJIRAmSMAJ9QhSDAVKaEY5D9qwNSA1FH7dLimQCcC2O+
Z2qydpjBtMF/xDOa53uHBqE=
=aemo
-----END PGP SIGNATURE-----
___________________________________________________
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