From kde-devel Wed Jun 24 16:45:46 2009 From: Arno Rehn Date: Wed, 24 Jun 2009 16:45:46 +0000 To: kde-devel Subject: Re: Problem with QT designer Qt3 -> Qt4 Message-Id: <200906241845.46537.kde-devel () arnorehn ! de> X-MARC-Message: https://marc.info/?l=kde-devel&m=124586204809672 On Wednesday 24 June 2009 18:42:46 Robin Atwood wrote: > On Wednesday 24 June 2009, Aaron J. Seigo wrote: > > On Wednesday 24 June 2009, Robin Atwood wrote: > > > Hmmm, I am now getting an error message: > > > > > > Object::connect: No such slot Renice::slotSliderChanged(int) in > > > /usr/src/dev/kde4/kps-0.9/build/src/ui_reniceui.h:131 > > > Object::connect: (sender name: 'm_slider') > > > Object::connect: (receiver name: 'Renice') > > > > > > This seems correct since the slots are coded in renice.cpp which > > > inherits Ui::Renice. ui_reniceui.h contains: > > > > have you declared slotSliderChanged as a slot in renice.h and moc is > > generating a moc file for that? > > class Renice : public QDialog, private Ui::Renice > { > Q_OBJECT > public: > ........... > protected: > void slotSliderChanged( int ); > void slotSpinBoxChanged( int ); it has to be class Renice : public QDialog, private Ui::Renice { Q_OBJECT public: ........... protected slots: void slotSliderChanged( int ); void slotSpinBoxChanged( int ); otherwise the moc won't know which methods are supposed to be slots. -- Arno Rehn arno@arnorehn.de >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<