You guys are right!
I had this for my process button:
processButton = createButton(tr("&Process"), SLOT(process()));
should be ...SLOT(processIT()));
A slot may have a shorter signature than the incoming signal, but not the way around.
Hint: make the parameter for output a default one:
Should I forget about passing a parameter to the output() function.
in essence:
//......
connect(&process,SIGNAL(readyReadStandardOutput()),
this,SLOT([B]output()[/B]));
//.......
//......
connect(&process,SIGNAL(readyReadStandardOutput()),
this,SLOT([B]output()[/B]));
//.......
To copy to clipboard, switch view to plain text mode
and then setup output as:
void Window::output()
{
out
->append
(QString(process.
readyReadStandardOutput()));
}
void Window::output()
{
out->append(QString(process.readyReadStandardOutput()));
}
To copy to clipboard, switch view to plain text mode
Bookmarks