[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: khtml invalid url handling
From:       David Faure <faure () kde ! org>
Date:       2004-11-25 15:45:22
Message-ID: 200411251645.23549.faure () kde ! org
[Download RAW message or body]

On Thursday 25 November 2004 16:37, big kdelady wrote:
> I was using the KHtmlPart and I was wondering how to detect errors during 
> loading?
> 
> For example, what if an invalid URL is attempted?  How can my custom browser 
> detect this?
> 
> I'm mostly interested in getting screen shots and want my script to know if 
> my custom browser was unable to load the requested page.

Connect to the canceled(const QString&) signal - it will be emitted instead of
finished() in case of an error.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
>> 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