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. QQuickWidget move problem on Android
QtWS25 Last Chance

QQuickWidget move problem on Android

Scheduled Pinned Locked Moved Mobile and Embedded
qquickwidgetmovemove problemproblemerrorqmldrag problemandroid qquickwqwebviewqwebview qquicksetgeometry
2 Posts 2 Posters 1.7k 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
    MrKozmon
    wrote on 9 Jul 2015, 23:14 last edited by
    #1

    Hi, I'm trying to create a cross-platform web browser solution on C++. I'm calling QtWebView 1.0 QML type from C++ with QQuickWidget, I'm using QML types because I didn't see a cross-platform web view library for C++ (for example QWebView C++ library don't work on mobile because it was written with WebKit). Therefore I created a project and it' worked good cross-platform but it's not working on Android exactly. My problem is moving that widget. It's working good on Desktop platforms but not on mobiles. I'm calling QtWebView 1.0 QML type from QQuickWidget but when I move that widget (for example with move(x,y) or with setGeometry(x,y,w,h)) widget moving good but 'browser' window not moving. I can resize it but I can't move it. You can see the picture below.

    Screen Picture
    And also my simple code in here
    Source codes

    What should I do?
    Thanks in Advance

    M 1 Reply Last reply 4 Jan 2018, 21:34
    0
    • M MrKozmon
      9 Jul 2015, 23:14

      Hi, I'm trying to create a cross-platform web browser solution on C++. I'm calling QtWebView 1.0 QML type from C++ with QQuickWidget, I'm using QML types because I didn't see a cross-platform web view library for C++ (for example QWebView C++ library don't work on mobile because it was written with WebKit). Therefore I created a project and it' worked good cross-platform but it's not working on Android exactly. My problem is moving that widget. It's working good on Desktop platforms but not on mobiles. I'm calling QtWebView 1.0 QML type from QQuickWidget but when I move that widget (for example with move(x,y) or with setGeometry(x,y,w,h)) widget moving good but 'browser' window not moving. I can resize it but I can't move it. You can see the picture below.

      Screen Picture
      And also my simple code in here
      Source codes

      What should I do?
      Thanks in Advance

      M Offline
      M Offline
      mightyoak
      wrote on 4 Jan 2018, 21:34 last edited by mightyoak 1 Apr 2018, 21:35
      #2

      @MrKozmon

      I'm having the exact same problem on Android. When I drag a QQuickWidget that is hosting a QML-based WebView on Android, the widget moves but the WebView is left in the original position. Wondering if there has been any progress or a workaround for this issue.

      I am using Qt 5.10.0, developing for an x86 Android platform.

      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