ashishsaryar
1st February 2008, 15:54
QGraphicsBlockItem::QGraphicsBlockItem(QRectF rt,QGraphicsItem *parent)
: QGraphicsItem(parent)
{
setHandlesChildEvents(true);
m_rtBlock = rt;
m_bOnlyOnce = true;
myparent = parent;
setSelected (true ) ;
connect ( this , SIGNAL ( groupRectItems() ), parent , SLOT( groupedRectBlock() ) );
}
I have writeen Slot in its parent ..
The following erro is coming .
Pls say o me how it will emove andwhat is reason of this eroor.
Error:
c:\Documents and Settings\ashishk\Desktop\MulteMathTool\graphicsblo ckitem.cpp(15): error C2664: 'bool QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)' : cannot convert parameter 3 from 'QGraphicsItem *' to 'const QObject *'
: QGraphicsItem(parent)
{
setHandlesChildEvents(true);
m_rtBlock = rt;
m_bOnlyOnce = true;
myparent = parent;
setSelected (true ) ;
connect ( this , SIGNAL ( groupRectItems() ), parent , SLOT( groupedRectBlock() ) );
}
I have writeen Slot in its parent ..
The following erro is coming .
Pls say o me how it will emove andwhat is reason of this eroor.
Error:
c:\Documents and Settings\ashishk\Desktop\MulteMathTool\graphicsblo ckitem.cpp(15): error C2664: 'bool QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)' : cannot convert parameter 3 from 'QGraphicsItem *' to 'const QObject *'