Finally I got my script working.
I modify the implement of function()
void AD::function()
{
qDebug() << "This is a test";
}
void AD::function()
{
qDebug() << "This is a test";
}
To copy to clipboard, switch view to plain text mode
and the script file
AD.function();
AD.function();
To copy to clipboard, switch view to plain text mode
after runt the script, I could find my qDebug() window shows
This is a test
nan
This is a test
nan
To copy to clipboard, switch view to plain text mode
The problem might go with the syntax error of my script file. Thanks for your help!
Bookmarks