Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtWebView Extra for Android

QtWebView Extra for Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 458 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MajidKamali
    wrote on last edited by
    #1

    Hi. I want to show some html content in QML WebView on android using Qt5.4.1
    I compiled WebView Extra for android and Desktop(gcc 64-bit linux) using following commands:

    $ export ANDROID_NDK_ROOT=PATH_TO_NDK
    $ export ANDROID_SDK_ROOT=PATH_TO_SDK
    $ export ANDROID_API_VERSION=android-10
    $ qmake
    $ make
    $ make install
    

    note that my Qt and Android SDK and NDK are in Home directory.
    According to documentation, WebView has loadHtml method. but when I call this function in QML, following error occurs:

    TypeError: Property 'loadHtml' of object QWebView(0x60c784d0) is not a function
    geometryChanged Invalid geometry:  QRectF(0,0 1280x0)
    

    qml autocompletion even does not have this method.
    What's the problem?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved