kennethadammiller
9th July 2010, 04:38
With this code below:
QGraphicsScene scene;
QPen *pen;
QBrush *brush;
QGraphicsView view(&scene);
QSpinBox *spinbox1 = w.findChild<QSpinBox *>("spinBox_2");
QObject::connect(spinbox1, SIGNAL(valueChanged(int)), &scene, SLOT(
addEllipse(
spinbox1->value(), spinbox2->value(), spinbox3->value(), spinbox4->value(), pen , brush )));
Please tell me why this error is occurring?
Starting C:\Users\Adam\QTProjects\BasicShooter\debug\BasicS hooter.exe...
Object::connect: No such slot QGraphicsScene::addEllipse( spinbox1->value(), spinbox2->value(), spinbox3->value(), spinbox4->value(), pen , brush ) in main.cpp:44
Object::connect: (sender name: 'spinBox_2')
C:\Users\Adam\QTProjects\BasicShooter\debug\BasicS hooter.exe exited with code 0
QGraphicsScene scene;
QPen *pen;
QBrush *brush;
QGraphicsView view(&scene);
QSpinBox *spinbox1 = w.findChild<QSpinBox *>("spinBox_2");
QObject::connect(spinbox1, SIGNAL(valueChanged(int)), &scene, SLOT(
addEllipse(
spinbox1->value(), spinbox2->value(), spinbox3->value(), spinbox4->value(), pen , brush )));
Please tell me why this error is occurring?
Starting C:\Users\Adam\QTProjects\BasicShooter\debug\BasicS hooter.exe...
Object::connect: No such slot QGraphicsScene::addEllipse( spinbox1->value(), spinbox2->value(), spinbox3->value(), spinbox4->value(), pen , brush ) in main.cpp:44
Object::connect: (sender name: 'spinBox_2')
C:\Users\Adam\QTProjects\BasicShooter\debug\BasicS hooter.exe exited with code 0