I want to connect some function as slot without class, can I do this:
void update() { }
int main()
{
QTimer timer = ...;
QObject::connect(timer, SIGNAL(timeout()), SLOT(update()));
return 0;
}
The compiler says, that without object it's impossible.