Slots in derived classes

Sandy Meier smeier at rz.uni-potsdam.de
Mon Dec 13 15:23:18 GMT 1999


On Sun, 12 Dec 1999 you wrote:
> Hi,
> 
> I wanted to add a slot CurTime() to a QLabel which displays the current
> datetime, so I created a new class DateTimeLabel, derived from QLabel.
> When I start the small application I get the following errormessage:
> 
>  QObject::connect: No such slot QLabel::CurTime()
> 
> Here's my code:

I have tested it and on my computer it works flawless. Maybe your "automoc" is a little
bit confused. Please try  "clean/rebuild all" from the project menu.

Ciao!
Sandy

--
Hi! I'm a signature virus! Copy me into your signature file to help me
spread!




More information about the KDevelop mailing list