I have seen some similar questions to mine on here, but I am still having issues.
I have a button in QT, I have a function defined in my main.cpp file. When I push the QT button I want to call the function in main.cpp and let that function do its thing.
mainwindow.cpp:
void MainWindow::on_StartMotor_clicked()
{
SendCmd(100);
}
main.cpp:
void SendCmd(INT Value)
{
}
But I get an error:
error: 'SendCmd' was not declared in this scope
SendCmd(100);
^
Im new to QT so I dont think I fully understand the slots and signals thing.
Thanks!