On Tue, Aug 6, 2013 at 11:30 AM, Thiago Macieira
<[email protected]>wrote:

> On terça-feira, 6 de agosto de 2013 11:17:35, Mandeep Sandhu wrote:
> > On Tue, Aug 6, 2013 at 10:21 AM, Tom Isaacson
> <[email protected]>wrote:
> > > I've added a simple browser page to my application using the demo code
> in
> > > Qt 4.8 as a base:
> > > [QTDIR]\demos\browser
> > >
> > > This works fine in Windows, but when I rebuild the app and try it on my
> > > embedded Linux device it fails. While experimenting I found I could
> load
> > > www.google.com by resolving the IP address and using that instead. I
> > > added the following code to my app:
> > > QHostInfo hostInfo = QHostInfo::fromName(m_url);
> >
> > Just to eliminate the obvious, "m_url" here contains a valid url?
>
> Or, better yet: does *not* contain a valid URL?
>

Oops, yes! It takes a host name or IP addr string as input.

-mandeep



>
> QHostInfo::fromName takes a host name. Not a URL.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to