[Qt-interest] Bug in QUrl?

Simarillion simarillion at gmx.de
Thu Nov 26 11:18:28 CET 2009


Am Donnerstag, 26. November 2009 10:24:49 schrieb Andreas Pakulat:
> On 26.11.09 10:01:00, Simarillion wrote:
> > Hi,
> > if I create a QUrl to our xml-rpc Server like this:
> >
> > QUrl ServerURL;
> > ServerURL.setUrl("http://study.hiper-campus.com/?q=services/xmlrpc");
> >
> > or
> >
> > QUrl ServerURL("http://studien.hiper-campus.de/?q=services/xmlrpc");
> >
> > ,afterwards the QUrl.path() variable is empty. Is this due to the
> > question mark? Is it a bug?
> 
> No, there's no bug. You simply don't have any path. The path is the part
> between the first slash and the first (unescaped) question mark.
> Everything after the question mark is the query string. Thats how URL's
> are defined.
> 
> Andreas
> 

Thank you.



More information about the Qt-interest-old mailing list