diff --git a/doc/src/platforms/android.qdoc b/doc/src/platforms/android.qdoc index 98af19da20e3d2dc1c1e3d4b77168bd705d676c8..27fe5e181e5caef280cf9fdb9104c272ce237e91 100644 --- a/doc/src/platforms/android.qdoc +++ b/doc/src/platforms/android.qdoc @@ -137,6 +137,13 @@ application to Android using the qrc approach: \note You can change the default settings for application icons and identifier. + \li If your application uses imports or plugins which depend on special Qt + modules, these Qt modules should be added to the .pro file. For example, if + your app uses the \l{Qt Multimedia} import in QML, you should add the + following to your .pro file: + \code + QT += multimedia + \endcode \li Save the changes to your project and run the application. \endlist diff --git a/doc/src/platforms/platform-notes-android.qdoc b/doc/src/platforms/platform-notes-android.qdoc index 67e2c4fa9cea8f55e4446f6569dda80a51068b24..9605b6e4781058fe09d41cc106b21643eba38ee4 100644 --- a/doc/src/platforms/platform-notes-android.qdoc +++ b/doc/src/platforms/platform-notes-android.qdoc @@ -95,6 +95,24 @@ opening the \b Run settings of your project, expanding \b{Deploy Configurations} and choosing \b{Deploy local Qt libraries}. Make sure the \b{Use local Qt libraries} check box is also ticked. + \section1 Plugins and Imports Special Considerations + + If an application uses plugins or imports that depend on other modules, these modules have to + be listed in the application's dependencies. This is because Qt Creator does not know ahead + of time which imports or plugins your application will end up loading. + + For example, if your application's QML code imports \l{Qt Multimedia}, then the Qt Multimedia module + must explicitly be made a dependency of the application. You can do this by adding it to the + application .pro file: + + \code + QT += multimedia + \endcode + + It is also possible to manually enable dependencies on Qt libraries by opening the + \gui Run settings of your project, expanding \gui{Package configurations} and selecting the + \gui Libraries tab. Manually check the libraries that are dependencies of your project. + \section1 OpenGL Special Considerations Qt for Android provides two separate platform plugins: One which is suited for traditional