Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QtWebView Extra for Android

    Mobile and Embedded
    1
    1
    362
    Loading More Posts
    • 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
      MajidKamali last edited by

      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 Reply Quote 0
      • First post
        Last post