[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problem with QT designer Qt3 -> Qt4
From:       Arno Rehn <kde-devel () arnorehn ! de>
Date:       2009-06-24 16:45:46
Message-ID: 200906241845.46537.kde-devel () arnorehn ! de
[Download RAW message or body]

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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic