meta object code for class is not generated, you'll need to call moc on this source yourself:
moc file.cpp >> moc_file.cpp
moc file.cpp >> moc_file.cpp
To copy to clipboard, switch view to plain text mode
and include this file in your source:
int main{...}
#include "moc_file.cpp"
int main{...}
#include "moc_file.cpp"
To copy to clipboard, switch view to plain text mode
edit:
SLOT statement is wrong, you should not include class name, only method name:
QObject::connect(timer,
SIGNAL(timeout
()),
new checker
(timer
),
SLOT(check
()));
// not checker::check(), because it will lead to checker::checker::check() in the end :)
QObject::connect(timer, SIGNAL(timeout()),new checker(timer), SLOT(check()));
// not checker::check(), because it will lead to checker::checker::check() in the end :)
To copy to clipboard, switch view to plain text mode
Bookmarks