Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2007
How to browse a real url?


Message 1 in thread

Hi all,
    I know that QTextBrowser could browse html files, but I want to browse
real urls. What should I do?

-- 
 [ signature omitted ] 

Message 2 in thread

On 08-04-2007 9:55 AM, "zhu jiang" wrote:

> Hi all,
>     I know that QTextBrowser could browse html files, but I want to browse
> real urls. What should I do?

What do you mean by "browse real URLs?" Do you mean to use the URL to launch
the system's browser (Internet Explorer/FireFox/Safari)?

Keith
**Please do not reply to me, reply to the list.**


Message 3 in thread

Hi !

If you want to open website or mailto: addresses, you should look at  
the QDesktopServices class, it is very handy, if you search for such  
a function.

As I remember, it is available in Qt-4.3 or greater.

Heiko


Am 04.08.2007 um 20:12 schrieb Keith Esau:

> On 08-04-2007 9:55 AM, "zhu jiang" wrote:
>
>> Hi all,
>>     I know that QTextBrowser could browse html files, but I want  
>> to browse real urls. What should I do?
>
> What do you mean by "browse real URLs?" Do you mean to use the URL  
> to launch the system's browser (Internet Explorer/FireFox/Safari)?
>
> Keith
> **Please do not reply to me, reply to the list.**


Message 4 in thread

Please reply to the list. Others my want to see the answers...

QTextBrowser should work regardless of where the files come from?locally or
over the internet. Just use the URL as the file name. (This appears to work
to a point, I haven't played with it much.)

Keith
**Please do not reply to me, reply to the list.**

On 08-04-2007 1:16 PM, "zhu jiang" wrote:

> Hi Keith,
>     I mean that I want to browse html files on the internet using some qt
> widget. It seems that QTextBrowser could only be used to browsed local html
> files.
> 
>  
> 2007/8/5, Keith Esau <keith.esau@xxxxxxx>:
>> On 08-04-2007 9:55 AM, "zhu jiang" wrote:
>> 
>>> Hi all,
>>>     I know that QTextBrowser could browse html files, but I want to browse
>>> real urls. What should I do?
>> 
>> What do you mean by "browse real URLs?" Do you mean to use the URL to launch
>> the system's browser (Internet Explorer/FireFox/Safari)?
>> 
>> Keith
>> **Please do not reply to me, reply to the list.**
> 
> 


Message 5 in thread

Hi Keith,
    I found that QTextBrowser could not be used to browse url. What a pity.


2007/8/5, Keith Esau <keith.esau@xxxxxxx>:
>
> Please reply to the list. Others my want to see the answers...
>
> QTextBrowser should work regardless of where the files come from―locally
> or over the internet. Just use the URL as the file name. (This appears to
> work to a point, I haven't played with it much.)
>
> Keith
> ***Please do not reply to me, reply to the list.**
> *
> On 08-04-2007 1:16 PM, "zhu jiang" wrote:
>
>  Hi Keith,
>     I mean that I want to browse html files on the internet using some qt
> widget. It seems that QTextBrowser could only be used to browsed local html
> files.
>
>
> 2007/8/5, Keith Esau <keith.esau@xxxxxxx>:
>
> On 08-04-2007 9:55 AM, "zhu jiang" wrote:
>
> Hi all,
>     I know that QTextBrowser could browse html files, but I want to browse
> real urls. What should I do?
>
>
> What do you mean by "browse real URLs?" Do you mean to use the URL to
> launch the system's browser (Internet Explorer/FireFox/Safari)?
>
> Keith
> **Please do not reply to me, reply to the list.**
>
>
>
>


-- 
 [ signature omitted ] 

Message 6 in thread

zhu jiang wrote:

> Hi Keith,
>     I found that QTextBrowser could not be used to browse url. What a
>     pity.
The next version of Qt will include Webkit. That should be able to do it, I
think.
Until that time, QTextBrowser can in fact display any URL*, but it does not
automatically retrieve the documents it needs when browsing. You could
implement that yourself if you wish, but I think it will be quite a job.

André

* Note that QTextBrowser is not a complete webbrowser, but only supports a
subset of HTML and CSS. There is no support for things like javascript at
all, so you can not just browse any URL with it.
-- 
 [ signature omitted ] 

Message 7 in thread

Hi André,
    Thanks for your patience. I have to do it myself now :(
2007/8/5, André Somers <andre@xxxxxxxxx>:
> zhu jiang wrote:
>
> > Hi Keith,
> >     I found that QTextBrowser could not be used to browse url. What a
> >     pity.
> The next version of Qt will include Webkit. That should be able to do it, I
> think.
> Until that time, QTextBrowser can in fact display any URL*, but it does not
> automatically retrieve the documents it needs when browsing. You could
> implement that yourself if you wish, but I think it will be quite a job.
>
> André
>
> * Note that QTextBrowser is not a complete webbrowser, but only supports a
> subset of HTML and CSS. There is no support for things like javascript at
> all, so you can not just browse any URL with it.
> --
> thermiek is een keuze!
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


-- 
 [ signature omitted ]