Results 1 to 2 of 2

Thread: unknown error in Qwebview

  1. #1
    Join Date
    Jan 2014
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default unknown error in Qwebview

    Hello,

    We using QT in our Touchscreen displays for machine controls. This HMI is communicating with a IPC. This IPC has a webserver to access information of the IPC.

    In this HMI i use the QwebView to show this webserver on the HMI.
    by using this code:
    ( the webserver is at http://192.168.10.30)

    //connections
    connect(m_ui->webView,SIGNAL(loadStarted()),this,SLOT(pageLoadi ng()));
    connect(m_ui->webView,SIGNAL(loadFinished(bool)),this,SLOT(page LoadFinished(bool)));
    connect(m_ui->webView,SIGNAL(loadProgress(int)),m_ui->progressBar,SLOT(setValue(int)));

    QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalContentCanAccessR emoteUrls, true);
    m_ui->webView->load(QUrl("http://192.168.10.30"));
    m_ui->keyboardFrame->setVisible(false);
    m_ui->webView->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwa ysOff);
    m_ui->webView->setZoomFactor(1.0);



    when i replace the ip address by http://google.com then everything works fine.
    When i use the http://192.168.10.30 then i got the message:
    Access denied.
    Client does not have
    access to the resourse
    on the server

    if i access the webserver with an ordinairy brouwser every thing worksfine.

    What can be the reason of this error?

    Regards
    Patrick

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: unknown error in Qwebview

    What can be the reason of this error?
    The configuration of the web server (assuming the error message is the content of the returned page). The web server access and error logs may well be informative.

    if i access the webserver with an ordinairy brouwser every thing worksfine.
    So is this browser running on the same machine?
    Using the same proxy as your Qt application?
    Using SSL?
    Quietly providing a client certificate to authenticate?

Similar Threads

  1. Ajax Unknown error
    By brcontainer in forum Qt Programming
    Replies: 19
    Last Post: 29th July 2013, 03:34
  2. QHostInfo - Unknown Error
    By alurchi in forum Qt Programming
    Replies: 7
    Last Post: 17th May 2011, 11:59
  3. QSslsocket and Unknown error
    By szarek in forum Qt Programming
    Replies: 21
    Last Post: 14th October 2010, 14:20
  4. QimageReader Unknown Error
    By bhaskar in forum Newbie
    Replies: 1
    Last Post: 2nd June 2010, 08:24
  5. QWebView unknown problem
    By morfei in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2008, 00:12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.