thanx a lot for ur post,
I am trying to do as u pointed out. so this is my code:
class faith1
{
public:
void updaterollAngle(int);
private:
};
void faith1::updaterollAngle(int i)
{
int rollangle;
rollangle = i;
}
in the int main function i do this :
faith1 andy;
QSpinBox *spinrotate = new QSpinBox;
spinrotate->setRange(0,180);
connect(spinrotate,SIGNAL(valueChanged(int)),this, SLOT(andy.updaterollAngle(int)));
this is off course not the complete code, but i get the following bug:
"invalid use of 'this' in non-member function"
i am sorry if there is a very lame reason that this is happening, (there must be), but i dont know exactly how to use the 'this' pointer. hope somebody can help,
p.s. i know , i suck at programming![]()




Reply With Quote


Bookmarks