[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KIO::get leads to Segmentation Fault
From: Stefan Walkner <walkner.stefan () sbg ! at>
Date: 2005-04-18 8:25:59
Message-ID: 200504181025.59314.walkner.stefan () sbg ! at
[Download RAW message or body]
hello again,
as I told yesterday I could handle the SegFault problem.
But now I have a new problem I really don't understand.
I think its a real newbie problem...
-------------CODE---------------
class MyClass : public QObject
{
Q_OBJECT
private slots:
void receiveData(KIO::Job *, const QByteArray &);
void receivedResult(KIO::Job *);
[...]
};
void MyClass::myMethod()
{
KIO::TransferJob *job = KIO::get(KURL(myurl), false, true);
connect(job, SIGNAL(result(KIO::Job *)), this,
SLOT(receivedResult(KIO::Job *)));
connect(job, SIGNAL(data(KIO::Job *, const QByteArray &)), this,
SLOT(receiveData(KIO::Job *, const QByteArray &)));
KIO::Scheduler::doJob(job); //also scheduleJob does not work
}
-------------CODE---------------
but -> I don't get informed about the result/data signals.
I turned on showProgressInfo and I see the progress dialog for short but I
cannot receive the signals...
Does anyone see my mistake?
thanks for your patience,
stefan walkner
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic