[Qt-interest] Discover IP address and Turn Into QUrl

Bryce Salmi Bryce.Salmi at zoran.com
Tue Sep 22 21:47:06 CEST 2009


Robin,
     Thanks for the reply. I used your suggestion and after consulting
the QString documentation I managed to get it to work great! Your email
set me on the right track. My change to your suggestion was

Request.setUrl(QUrl(QString("http://%1/something.cgi").arg( ip ) ) );

I had to change the %s to a %1 and if there were more arguments I would
continue with %2, %3, and so on.




Bryce

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Robin Helgelin
Sent: Tuesday, September 22, 2009 3:20 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Discover IP address and Turn Into QUrl

On Tue, Sep 22, 2009 at 18:29, Bryce Salmi <Bryce.Salmi at zoran.com>
wrote:
> Request.setUrl(QUrl(("http://%s/something.cgi", ip)));

That would be QUrl( QString( "http://%s/something.cgi" ).arg( ip ) )

-- 
        regards,
        Robin

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list