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. Loading local HTML to QML WebView in Android - Size issue
Forum Updated to NodeBB v4.3 + New Features

Loading local HTML to QML WebView in Android - Size issue

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qml webviewandroidqt 5.7
1 Posts 1 Posters 1.1k 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.
  • A Offline
    A Offline
    abygm
    wrote on 9 Jul 2016, 17:21 last edited by abygm 7 Nov 2016, 05:54
    #1

    Two QQuickWidgets are placed in ui. Basic QML with a WebView is loaded in both. Webview on first widget loads a plain HTML page from internet. Second widget loads SAME html content from a local file.

    Content in first widget is as expected; resized to the container. BUT contents in second widget looks zoomed. All font, form elements etc. are much bigger than expected.

    Applying CSS, font-size parameter etc, are not solving the issue. How can we 'correct' this behaviour ?

    EDIT: After repeated experiments I have observed that: the behaviour is not consistent. If there are more than one QQWidgets, the LAST LOADED widget displaying fully resized content... IRRESPECTIVE of local file or Web.

    Issuing qApp->processEvents(QEventLoop::AllEvents) before and after qQwidget.setSource improves the situation; still erratic.

    Request to throw some light into this issue..

    Aby.

    1 Reply Last reply
    0

    1/1

    9 Jul 2016, 17:21

    • Login

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