Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Widgets+QML Android
Qt 6.11 is out! See what's new in the release blog

Widgets+QML Android

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 289 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.
  • T Offline
    T Offline
    Tyrion
    wrote on last edited by
    #1

    Hello, everyone!

    For my application I need to use QGraphicsView and the QML interface.

    For this I have two ways:

    1. QQuickWidget.
    2. QQuickView + QWidget::createWindowContainer

    But for the two approaches I have problems.

    1. Everything works on Windows but TextField doesn't work when using the standard Android emulator. No input cursor and no keyboard appears, the component is just not active. Strangely enough SpinBox and TextInput, buttons and everything else works.
      But if I create a simple application using only Qt Quick, everything works fine! What can be the problem?

    2. The second way is more preferable for me. Everything works on Windows. But I have problems on Android emulator too. In this case, all QML components are not active, they do not respond to clicks. Please tell me what could be the problem?

    I use Qt 6.5, Qt Creator with CMake and Emulator for "7inn WSVGA (Tablet)" Android 12.0 (S) (SDK 31) x86_64

    ? 1 Reply Last reply
    0
    • T Tyrion

      Hello, everyone!

      For my application I need to use QGraphicsView and the QML interface.

      For this I have two ways:

      1. QQuickWidget.
      2. QQuickView + QWidget::createWindowContainer

      But for the two approaches I have problems.

      1. Everything works on Windows but TextField doesn't work when using the standard Android emulator. No input cursor and no keyboard appears, the component is just not active. Strangely enough SpinBox and TextInput, buttons and everything else works.
        But if I create a simple application using only Qt Quick, everything works fine! What can be the problem?

      2. The second way is more preferable for me. Everything works on Windows. But I have problems on Android emulator too. In this case, all QML components are not active, they do not respond to clicks. Please tell me what could be the problem?

      I use Qt 6.5, Qt Creator with CMake and Emulator for "7inn WSVGA (Tablet)" Android 12.0 (S) (SDK 31) x86_64

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Tyrion I won't really be helpful, but

      • QQuickWidget is the intended method to have QtQuick and inside QtWidgets app. But on my side i'm also having a little problem with this : on a windows touchscreen device (surface pro 5), the UI inside the QQuickWidget doesn't respond at all to the touchscreen, while it works perfectly with QQuickView. So I wouldn't be surprised this to be a new problem with QQuickWidget.
      • QtWidgets is not really the best choice for mobile devices.

      I haven't entirely read this article, but I'd suggest that you do. I might be wrong but i feel like the QQuickPaintedItem might be an alternative to QGraphicsView ?

      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