Qt 6.11 is out! See what's new in the release
blog
How do know the device phone number.
Mobile and Embedded
3
Posts
2
Posters
986
Views
2
Watching
-
Afaik there is currently no QML-based API for retrieving the phone number, so you need to use JNI to obtain the number from Android's
TelephonyManagerJava class.You can then use it in your QML code by either registering it as a context property in the engine or with the help of a custom
QQuickItem. -
Afaik there is currently no QML-based API for retrieving the phone number, so you need to use JNI to obtain the number from Android's
TelephonyManagerJava class.You can then use it in your QML code by either registering it as a context property in the engine or with the help of a custom
QQuickItem.Thank you, solved ^^