PDA

View Full Version : problem with changed() signal emitted by QGraphicsScene



sanjayshelke
29th April 2009, 13:18
Hi All,

I am facing problem with use of changed( const QList<QRectF> & region) signal emitted by QGraphicsScene whenever scene contents are changed.

Connecting this signal to one of my SLOT returns false saying there is no such signal in QGraphicsScene.

I writing like this :

qDebug()<<connect(scene, SIGNAL(changed(const QList<QRectF> &region ) ), this, SLOT(sceneModified( const QList<QRectF> & region)));

I am getting following debug information

Object::connect: No such signal QGraphicsScene::changed(QList<QRectF>&region)


Any suggestion or hint will be helpfull.

Thanks in advance
~Sanjay

mcosta
29th April 2009, 14:55
The correct syntax for connect is


connect(scene, SIGNAL(changed(const QList<QRectF> &) ), this, SLOT(sceneModified( const QList<QRectF> &)));