Commit Graph

6 Commits

Author SHA1 Message Date
Nicholas Bennett 07a6e941a5 Docs: Update Qt Quick for Android Example documentation
-Fixed the path to the example.

-Reduced the example image resolution to improve the layout.

-Explained that the QML is defined in main.qml and second.qml.

-Include XML layout snippets and info.

-Added the imports for the qml types to the snippets and explained them.

-Added a link to the Qt Academy course.

Fixes: QTBUG-138219
Pick-to: 6.10
Change-Id: I9d59bc1b5b63a3d6a8230cdd83b99efd886744d5
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2025-08-21 11:30:39 +00:00
Konsta Alajärvi 7dacc8bce1 Update Qt Quick for Android qtabstractitemmodel_java example docs
qtabstractitemmodel_java example was changed to use editable model.
Reflect that change in the example docs.

Fixes: QTBUG-132395
Change-Id: Ia4d1b33b9b8862efad502fe45e6fbd3584ca274f
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2025-01-10 10:11:41 +00:00
Petri Virkkunen 8b6905704e QtQuickView: Modify multi-view examples to have both views visible at once
Since we now support having multiple QtQuickViews loaded at once, it
was decided that we can modify the existing 1-view, content-switching
examples to instead display the available QML views all at once.

This change includes:
- Necessary QML changes to fit the content onto one view, including
text wrapping and anchoring changes
- Android layout changes to add a second layout for the second
QtQuickView
- Source changes to load the second view, rename variables to match the
new functionality, and handle orientation changes.

Task-number: QTBUG-129288
Change-Id: I5c8c5e3de168365ead6fdbe9cfe7ad6285d4b8bf
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-12-10 10:12:24 +02:00
Petri Virkkunen 50aea1f6a3 Android: Add documentation for QtAbstractListModel example
This change includes code snippet markers, some minimal code changes
(moving code around for snippet clarity), a screenshot of the example
and the main documentation page for the example.

Task-number: QTBUG-126841
Pick-to: 6.8
Change-Id: I2a10571f37a70a55b8411f1b7989b47810639386
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
2024-08-13 22:28:03 +03:00
Konsta Alajärvi ce65c63748 Android: Add documentation for QtAbstractItemModel Java API example
Adds documentation for Android Studio example application project.
Explains how to handle complex data types between Java and QML.
Explains the project structure and thread contextes with code examples.

Example opens up the usage of two Java API classes
QtAbstractItemModel (QtAIM) and QtModelIndex (QtMI).

Task-number: QTBUG-126457
Pick-to: 6.8
Change-Id: Ibbd10b74aa415985f3edd0affa8d0301d71aa8c0
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
2024-08-01 18:01:37 +03:00
Nicholas Bennett 0b594fb3ba Adds documentation for the qml_in_java_based_android_projects example
Added a qdoc file to the top folder and edited the qtquick.qdocconf
file to include it as src and for snippets.

Task-number: QTBUG-122964
Pick-to: 6.7
Change-Id: I581e369b0682804729a98288164492ac1c604194
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-04-17 02:00:15 +03:00