
Originally Posted by
marcel
No, they should get the finished signal.
The only thing you must worry about is the thread finish condition.
I mean, when does the thread stop? Are the recursion conditions correct?
If you can get these straight, then the thread will exit OK and you will get the finished signal, therefore be able to extract the data.
Please correct me if I'm wrong.
Regards
yes this is correct ... on the QObject i call the QThread wo self exec() this call
HTTP_propfind( QUrl urigo ) <- this emit only a return QString xml ls info from dir or empty..
on error...
on subclass QHttp i have only two signal..
connect(this, SIGNAL(requestFinished(int, bool)), this, SLOT(EndTakeData(int, bool)));
connect(this, SIGNAL(done(bool)), this, SLOT(abort()));
can this break QThread?
can this break finished() signal ... i show on main.moc and i found the signal from QThread -> QObject.....
{
DavListDir *cann = new DavListDir(); /* QThread */
cann->SetUrl(dir);
cann
->start
(QThread::HighPriority);
connect(cann, SIGNAL(finished()), this, SLOT(Read_LS_all()));
}
void Read_LS_all()
{
DavListDir *incomming = qobject_cast<DavListDir *>(sender());
QString xmlls
= incomming
->GetxmlData
();
append xmlls to tree..
..........
void ls_a( QUrl dir )
{
DavListDir *cann = new DavListDir(); /* QThread */
cann->SetUrl(dir);
cann->start(QThread::HighPriority);
connect(cann, SIGNAL(finished()), this, SLOT(Read_LS_all()));
}
void Read_LS_all()
{
DavListDir *incomming = qobject_cast<DavListDir *>(sender());
QString xmlls = incomming->GetxmlData();
append xmlls to tree..
..........
To copy to clipboard, switch view to plain text mode
or must i start the QThread on QObject
class....
cann->start(QThread::HighPriority); ++
cann->wait() ++
like $QTDIR/examples/threads/waitconditions ?
note at end on main.cpp i have
#include "main.moc"
can this break signal.. ? i think no if i leave QThread the ls dir QHttp runn corecet..
Bookmarks