close
Warning:
AdminModule failed with TracError: Unable to instantiate component <class 'trac.ticket.admin.PriorityAdminPanel'> (super(type, obj): obj must be an instance or subtype of type)
- Timestamp:
-
Feb 16, 2013, 6:45:52 PM (13 years ago)
- Author:
-
Martin Kolman
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v6
|
v7
|
|
| 78 | 78 | ===== What the example application demonstrates ===== |
| 79 | 79 | * sending data to Python and back |
| 80 | | -> the content of the entry fild is sent to Python, |
| 81 | | where it is painted on the PySide image and returned to QML using ImageProvider |
| 82 | | -> the date is retrived in Python and shown in QML |
| | 80 | * the content of the entry fild is sent to Python, where it is painted on the !PySide image and returned to QML using !ImageProvider |
| | 81 | * the date is retrived in Python and shown in QML |
| 83 | 82 | * working text entry with the Android virtual keyboard |
| 84 | 83 | * working screen rotation |
| 85 | | * correct Portrait/Landscape orientation switching |
| 86 | | -> in both normal & inverted orientations |
| 87 | | * working notifications (InfoBanner) |
| 88 | | * working ToolBar |
| | 84 | * correct !Portrait/Landscape orientation switching |
| | 85 | * in both normal & inverted orientations |
| | 86 | * working notifications (!InfoBanner) |
| | 87 | * working !ToolBar |
| 89 | 88 | * working Menu |
| 90 | | * "tools" menu with rotation & opacity sliders for the PySide image |
| | 89 | * "tools" menu with rotation & opacity sliders for the !PySide image |
| 91 | 90 | |
| 92 | | Size |
| 93 | | ==== |
| | 91 | ===== Source code ===== |
| | 92 | Available from Github under BSD licence:[[BR]] |
| | 93 | https://github.com/M4rtinK/expyside/tree/android |
| | 94 | |
| | 95 | ===== Size of the APK ===== |
| 94 | 96 | The example APK has about 16 MB. This is because it needs to bundle quite a lot of |
| 95 | 97 | libraries and related files. Big part of it is actually not used by the example in any way. |
| 96 | 98 | |
| 97 | 99 | For normal applications it should be possible to make the resulting APK much smaller by: |
| 98 | | * includding only the PySide libraries that are actually used |
| | 100 | * includding only the !PySide libraries that are actually used |
| 99 | 101 | * removing unused Python modules |
| 100 | 102 | * cutting down the Qt Components theme from all grahics & icons that are not used |
| | 103 | |
| | 104 | === Example project for the Necessitas Qt Creator === |
| | 105 | This project has been used to generate the above mentioned application example APK. |
| | 106 | |
| | 107 | ==== Using the project ==== |
| | 108 | Using the project to build your own project is very easy. Just install the [http://necessitas.kde.org/necessitas/necessitas_sdk_installer.php Necessitass SDK] and clone the example project from git: |
| | 109 | {{{ |
| | 110 | git clone git://github.com/M4rtinK/android-pyside-example-project.git |
| | 111 | }}} |
| | 112 | Then just open the ''!PySideExample.pro'' with the Necessitas Qt Creator. |
| | 113 | |
| | 114 | To generate a new APK, just click the green "deploy" button - Qt Creator should rebuild the the APK and deploy it either to the simulator or to any connected Android device that has debugging enabled. |
| | 115 | |
| | 116 | ==== How does it work ? ==== |
| | 117 | |
| | 118 | ==== Modifying the projct ==== |
| 101 | 119 | |
| 102 | 120 | == Links == |