C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QT et fenêtre qui gèle

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
wtc0der
Guest





PostPosted: Mon Mar 21, 2005 8:07 pm    Post subject: QT et fenêtre qui gèle Reply with quote



Bonsoir.

J'ai fait une petite GUI pour wget, en C++ / QT.
Elle marche bien, mais par contre, j'ai un gros problème de rafraichissement
de la fenêtre.

Normalement, la sortie standard de wget doit apparaitre dans une QTextEdit,
mais malheuresement, ma fenêtre reste figée jusqu'a la fin du processus.
Une fois le processus finit, tout rentre dans l'ordre, et la sortie
standard est bien dans la QTextEdit, mais c'est assez génant quand même)

Quelqu'un à une idée ?
Merci d'avance.


Code :
===============================================================================
void WgetGuiWidget::cmdTelecharger_click()
{
maTache = new KProcess;
*maTache << "wget";
*maTache << "--progress=dot";
//*maTache << "-O /tmp/";
// -O /path/nom_du_fichier pour la cible
*maTache << txtURL->text();
maTache->setUseShell(true, "/bin/sh");

reader.edt = txtLog;

connect( maTache, SIGNAL(receivedStdout(KProcess *, char *, int)),
&reader,
SLOT(readStdout(KProcess *, char *, int)) );

connect( maTache, SIGNAL(receivedStderr(KProcess *, char *, int)),
&reader,
SLOT(readStderr(KProcess *, char *, int)) );

if (maTache->start(KProcess::Block, KProcess::AllOutput)) {
txtLog->append (">>> Process End <<");
} else {
txtLog->append (">>> Process Failled <<");
}
}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.