Dear all,
For my first program, I am using the amazing MathGL library to paint graphs and trajectories. The incorporated QMathGL class is extended from QWidget, and I have added this to my MainWindow.
It sends a signal void mouseClick(float,float,float). I am now capturing this signal from the QMathGL ui->qmgl with QWidget ui->vehicles_tab using
connect(ui->qmgl, SIGNAL(mouseClick(float, float, float)), ui->vehicles_tab, SLOT(on_graph_clicked(float, float, float)));
connect(ui->qmgl, SIGNAL(mouseClick(float, float, float)), ui->vehicles_tab, SLOT(on_graph_clicked(float, float, float)));
To copy to clipboard, switch view to plain text mode
But within the class definition of ui->vehicles_tab i have defined slot on_graph_clicked as
void VehiclesTab::on_graph_clicked(float x,float y,float z)
void VehiclesTab::on_graph_clicked(float x,float y,float z)
To copy to clipboard, switch view to plain text mode
in order to handle the value of the floats (x, y and z).
This seems to work, but i still get the warning:
QMetaObject::connectSlotsByName: No matching signal for on_graph_clicked(float,float,float)
What am I doing wrong?
Thank you in advance!
Bookmarks