Hello!

How can I use signals of QGraphicsRectItem?

I tried this:

m_rectangle = new QGraphicsRectItem( 0, 0, 40, 40 );
m_rectangle->setPen( QPen(Qt::black) );
m_rectangle->setBrush( QBrush( QColor( 0, 200, 0, 200 ) ) );

connect(m_rectangle, SIGNAL(MousePressEvent), this, SLOT(animate()));

but I get this:
no matching function for call to 'GraphicsViewDemo::connect(QGraphicsRectItem*&, const char*, GraphicsViewDemo* const, const char*)'