×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    QML webview user agent

    Hi,
    How to set QML webview user agent

    kindly advice

    Thanks
    Wael

  2. #2
    remy_david
    Guest

    Re: QML webview user agent

    Hi,

    The qml webview use the qmlviewer engine to access the internet.
    The engine uses the user agent set by the underlying QNetworkAccessManager.
    To set a custom network manager :
    QmlApplicationViewer viewer;
    viewer.engine()->setNetworkAccessManagerFactory(&factory);

    where factory is your custom network manager factory.
    See QDeclarativeNetworkAccessManagerFactory documentation for more details.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    18

    Re: QML webview user agent

    Hi,

    For more elaborate and detailed code for setting the QML webview user agent, please refer the link mentioned below:
    https://bugreports.qt.nokia.com//browse/QTBUG-19259.

    The above link explains how to set an explicit user agent.
    Hope this link helps you.

    --Mayura.

Similar Threads

  1. How to change user agent in webview?
    By molbal in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-11-04, 19:49
  2. User Agent
    By Eruk in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2009-12-11, 18:08
  3. N73 user agent
    By rupam_jaiswal in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2009-01-29, 08:35
  4. About User-Agent
    By linjunan in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2003-12-29, 01:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×