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. Make Toast in Android by QML

Make Toast in Android by QML

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 3.3k 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.
  • R Offline
    R Offline
    redstoneleo
    wrote on last edited by
    #1

    I have not started my learning Android developing by QML ,I just curious that "Toasts":http://developer.android.com/reference/android/widget/Toast.html seems to be a Android specific widget ,while Qt for Android seems doesn't have a ready-made corresponding widget, so how do you implement a Toast in Android by QML ?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      redstoneleo
      wrote on last edited by
      #2

      thanks!!!the comment here is useful http://stackoverflow.com/questions/26879266/make-toast-in-android-by-qml/26900933#26900933
      [quote author="Scrincer" date="1415810772"]via Java Native Interface
      http://qt-project.org/doc/qt-5/qandroidjniobject.html

      1- Your c++ qtobject will call java code to show the toast.
      2- You expose your c++ qtobject to QML.

      [/quote]

      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