[gelöst] qstringlist -> qstring

Alles rund um die Programmierung mit Qt
BartSimpson
Beiträge: 1379
Registriert: 6. November 2004 12:03
Kontaktdaten:

Beitrag von BartSimpson »

Da ich dein ganzen Code nicht kenne, käme es auf einen Versuch an.
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

das ist erstmal alles!
trotzdem versteh ich nicht warum es ohne
while(prc.isRunning() )
{
}
nicht funzt?

Code: Alles auswählen

void Form1::conf_pipe(/*QString com*/)
{  
    connect(&prc, SIGNAL(readyReadStdout() ), this, SLOT(daten() ) ); 
    prc.addArgument("./configure");
    prc.start();

    while(prc.isRunning() )
    {
    }
     textEdit_log->setText( strlist.join( "\n" ) );
}

void Form1::daten()
{
   strlist.append(prc.readLineStdout() );
} 
/*
void trace_install()
{
    QStringList sl; QString str;
    while(true)
	Sbuffer.find("/", 0);
}
*/
void Form1::FileDialog()
{
    s_file = QFileDialog::getOpenFileName(
                    "/home",
                    "Archiv (*.tar *.tar.gz *.tar.bz2)");
    
    lineEdit_path_packet->setText(s_file);
}

void Form1::extract()
{
  system("tar xf " + s_file); //extraction  
  cout<<"GUT: STAGE 1"<<endl;
}

void Form1::conf()
{
  options = lineEdit_parameters->displayText();
  target_path = lineEdit_path->displayText();
    
  short pos = s_file.find(".tar" , 0);
  s_filepath = s_file.left(pos);
   
  chdir(s_filepath); //cd ..
  cout<<s_filepath<<endl;
  cout<<"bearbeite ./configure script"<<endl;
  conf_pipe();
  //textEdit_log->setText( conf_pipe(lineEdit_parameters->displayText() ).join( "\n" ) );
}
Antworten