Mmmmm
If I understood you well.
It should be like this?
void MainWindow::on_pb_new_package_clicked()
{
QString install
="pwd";
//"gksudo apt-get install build-essential devscripts ubuntu-dev-tools debhelper dh-make diff patch gnupg fakeroot lintian pbuilder"; connect(process,SIGNAL(readReadyStandardOutput()),this, SLOT( _readstdoutput()));
process->execute(install);
}
void MainWindow::_readstdoutput()
{
ui->textEdit->append(process->readAllStandardOutput());
}
void MainWindow::on_pb_new_package_clicked()
{
QString install="pwd";//"gksudo apt-get install build-essential devscripts ubuntu-dev-tools debhelper dh-make diff patch gnupg fakeroot lintian pbuilder";
connect(process,SIGNAL(readReadyStandardOutput()),this, SLOT( _readstdoutput()));
process->execute(install);
}
void MainWindow::_readstdoutput()
{
ui->textEdit->append(process->readAllStandardOutput());
}
To copy to clipboard, switch view to plain text mode
But I have my doubts. About this solution, the function _readstdoutput is going to append something that doesn't exist to the textedit?
I tried it, and the program crashes when I make the conection
Bookmarks