i want to handle events in my list view so
Code:
class mqMainList
: public QListView
{
public:
mqMainList(QWidget* parent=0, const char* name=0)
: QListView(parent,name)
{
connect( this, SIGNAL( doubleClicked( QListViewItem* ) ),
(mqMainList*)this, SIGNAL( a( QListViewItem* ) ) );
}
private slots:
void a(QListViewItem*)
{
}
};
and i create my list view like this
Code:
l_main=new mqMainList( this, "Main Panel" );
but at run time i get:
QObject::connect: No such signal QListView::a(QListViewItem*)
QObject::connect: (sender name: 'Main Panel')
QObject::connect: (receiver name: 'Main Panel')
what am i doing wrong
thanks