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. Android NativeUI components in QML
Forum Updated to NodeBB v4.3 + New Features

Android NativeUI components in QML

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 997 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Stellarsctipt
    wrote on 7 Aug 2017, 15:39 last edited by
    #1

    Is it possible to wrap android.view.View in a QWidget or somehow use it in QML with other QT components?
    Just call a java method is not enough for my purpose.
    I see it is possible for iOS, but i can't find alternative for android.

    R 1 Reply Last reply 9 Aug 2017, 07:02
    0
    • S Stellarsctipt
      7 Aug 2017, 15:39

      Is it possible to wrap android.view.View in a QWidget or somehow use it in QML with other QT components?
      Just call a java method is not enough for my purpose.
      I see it is possible for iOS, but i can't find alternative for android.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 9 Aug 2017, 07:02 last edited by
      #2

      @Stellarsctipt
      not directly. The QtWebView module just overlays the native view over the QML scene and forwards some properties/calls from QML to the native view.
      See it's source and use the same principle.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • S Offline
        S Offline
        Stellarsctipt
        wrote on 9 Aug 2017, 08:18 last edited by
        #3

        Thank you @raven-worx. I did't know how the framework works when I asked the question. I thought the qt components are wrappers around the native components.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PavelIgorevich
          wrote on 28 Aug 2017, 13:33 last edited by
          #4

          You can check this repo - https://github.com/2gis/qtandroidextensions - it has native android widgets wrapped as QML objects

          1 Reply Last reply
          1

          • Login

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