Would it be wrong if I do it that way:
connect(pushButton, SIGNAL(clicked()), this, SLOT(myFunc()));
connect(this, SIGNAL(mySignal(int), this, SLOT(myOtherFunc(int)));
[...]
void MainWindow::myFunc()
{
mySignal(10);
}
connect(pushButton, SIGNAL(clicked()), this, SLOT(myFunc()));
connect(this, SIGNAL(mySignal(int), this, SLOT(myOtherFunc(int)));
[...]
void MainWindow::myFunc()
{
mySignal(10);
}
To copy to clipboard, switch view to plain text mode
I've tried this, and it works, but I don't know if it's correct use of signals.
thanks in advance
best regards
Tomasz
Bookmarks