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
QtWS25 Last Chance

Android NativeUI components in QML

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 989 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.
  • S Offline
    S Offline
    Stellarsctipt
    wrote on 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.

    raven-worxR 1 Reply Last reply
    0
    • S Stellarsctipt

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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 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 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