Thanks the error message not there, but the signal is not triggred , after i do my selection the rect and every thing but the signal is not triggered??
OK i found in the bode example that come with the qwt library
used a picker and the selected signal
this way :
// mainwindow header
private Q_SLOTS:
//mainwindow cpp
...
connect(d_picker,
SIGNAL(selected
(const QPolygon &)),
SLOT(selected
(const QPolygon &)));
....
....
void MainWindow
::selected(const QPolygon & ) {
qDebug()<<" I got triggred ";
................
}
// mainwindow header
private Q_SLOTS:
void selected(const QPolygon &);
//mainwindow cpp
...
connect(d_picker, SIGNAL(selected(const QPolygon &)),SLOT(selected(const QPolygon &)));
....
....
void MainWindow::selected(const QPolygon & )
{
qDebug()<<" I got triggred ";
................
}
To copy to clipboard, switch view to plain text mode
this signal was triggered fine, but why the
connect(picker, SIGNAL(selected(const QVector<QPointF> &)), SLOT(DrawSelection(const QVector<QPointF> &)));
was not triggered ???
Bookmarks