Qt for Android FAQ: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
m (Group into a category.)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This page should collect <span class="caps">FAQ</span> specific for Qt for Android. The status of the project is summarized at [[Qt5ForAndroid|http://wiki.qt.io/Qt5ForAndroid]]
[[Category:Qt for Android]]
This page should collect FAQ specific for Qt for Android. The status of the project is summarized at http://wiki.qt.io/Qt5ForAndroid


This page is not focused on developers of Qt for Android, but on developers using Qt for Android.
This page is not focused on developers of Qt for Android, but on developers using Qt for Android.
Line 5: Line 6:
'''Q: How to debug Qt applications on Android device?'''
'''Q: How to debug Qt applications on Android device?'''


A: See [[How-to-debug-Qt-applications-on-Android-device|http://wiki.qt.io/How-to-debug-Qt-applications-on-Android-device]]
A: See http://wiki.qt.io/How-to-debug-Qt-applications-on-Android-device


'''Q: How can I use Qt with Python on Android?'''
'''Q: How can I use Qt with Python on Android?'''


A: Search for PySide Project [[Building PySide on Android|http://wiki.qt.io/Building_PySide_on_Android]]
A: Search for PySide Project http://wiki.qt.io/Building_PySide_on_Android


'''Q: How can I disable hardware keys e.g. back or home?'''
'''Q: How can I disable hardware keys e.g. back or home?'''


A: If you don’t want the app to close, you need to handle the key event. Please note, that you have to handle the release event, not the press.
A: If you don't want the app to close, you need to handle the key event. Please note, that you have to handle the release event, not the press.


There is a way to leave handling the volume up/down buttons to android. Add the code to QtActivity to forward them to super.
There is a way to leave handling the volume up/down buttons to android. Add the code to QtActivity to forward them to super.


* Q: Closing application from Android does not call destructors *
'''Q: Closing application from Android does not call destructors'''


A: https://bugreports.qt.io/browse/QTBUG-33335
See [https://bugreports.qt.io/browse/QTBUG-33335 QTBUG-33335]
 
'''Q: How can I create a splash screen?'''
 
A: See [https://medium.com/@benlaud/complete-guide-to-make-a-splash-screen-for-your-qml-android-application-567ca3bc70af#.ta2k6s35p Complete Guide to Making a Splash Screen for your QML Android Applicatio ]
 
'''Q: How to bundle Google Play Services'''
 
A: See [http://xanm.blogspot.ru/2014/03/admob-in-qt.html AdMob In Qt]

Latest revision as of 13:00, 22 November 2016

This page should collect FAQ specific for Qt for Android. The status of the project is summarized at http://wiki.qt.io/Qt5ForAndroid

This page is not focused on developers of Qt for Android, but on developers using Qt for Android.

Q: How to debug Qt applications on Android device?

A: See http://wiki.qt.io/How-to-debug-Qt-applications-on-Android-device

Q: How can I use Qt with Python on Android?

A: Search for PySide Project http://wiki.qt.io/Building_PySide_on_Android

Q: How can I disable hardware keys e.g. back or home?

A: If you don't want the app to close, you need to handle the key event. Please note, that you have to handle the release event, not the press.

There is a way to leave handling the volume up/down buttons to android. Add the code to QtActivity to forward them to super.

Q: Closing application from Android does not call destructors

See QTBUG-33335

Q: How can I create a splash screen?

A: See Complete Guide to Making a Splash Screen for your QML Android Applicatio

Q: How to bundle Google Play Services

A: See AdMob In Qt