PDA

View Full Version : QListView::connect



mhbeyle
26th November 2009, 13:31
OK. Ihave this little piece of example code:




QListView *seriesList = new QListView;
QPushButton *bt001 = new QPushButton("001");
seriesList->show();
bt001->show();
QListView::connect(seriesList, SIGNAL(clicked()), seriesList, SLOT(updateProbe()));
QPushButton::connect(bt001, SIGNAL(clicked()), bt001, SLOT(updateProble()));

When I run the project, debug messaging system sends a warning:


Object::connect: No such signal QListView::clicked()

QPushButton::connect works correctly. I've tried with another signals from QListView::connect but always I obtain the same message and connect doesn't work.

:confused: :eek:

Lykurg
26th November 2009, 13:37
Try:



connect(seriesList, SIGNAL(clicked(const QModelIndex &)), seriesList, SLOT(updateProbe()));

mhbeyle
26th November 2009, 13:47
Try:



connect(seriesList, SIGNAL(clicked(const QModelIndex &)), seriesList, SLOT(updateProbe()));


Thank You very much.
QT Documentation is not clear at this point. Or I haven't known to search it :) .