Problem solved!!!
Thanks high_flyer
PS. Google Traductor and my few english let me knows you were getting a little desesperate.
But thanks
It should be like this at the end
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"; process
->setProcessChannelMode
(QProcess::MergedChannels);
connect(process,SIGNAL(readyReadStandardOutput()),this, SLOT( _readstdoutput()));
process->start(install);
}
void MainWindow::_readstdoutput()
{
ui->textEdit->setText(a);
}
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";
process->setProcessChannelMode(QProcess::MergedChannels);
connect(process,SIGNAL(readyReadStandardOutput()),this, SLOT( _readstdoutput()));
process->start(install);
}
void MainWindow::_readstdoutput()
{
QByteArray ca=process->readAllStandardOutput();
QString a(ca);
ui->textEdit->setText(a);
}
To copy to clipboard, switch view to plain text mode
Bookmarks