Most of that code is wrong, you should spend more time studying C++ before trying to learn Qt.
Assuming that your header file contains a proper class declaration for
myMainwindow
, then the .cpp file should look something like the following, and use the same method name as declared in the header:
void myMainwindow::on_Push_Button_clicked()
{
mytesfunctioncall();
}
void myMainwindow::mytesfunctioncall()
{
qDebug() << "Hello world msg";
}