https://github.com/roguh/qtdemo
A test of the features of the C++ framework Qt5, especially for Android apps.
https://github.com/roguh/qtdemo
Last synced: 28 days ago
JSON representation
A test of the features of the C++ framework Qt5, especially for Android apps.
- Host: GitHub
- URL: https://github.com/roguh/qtdemo
- Owner: roguh
- Created: 2016-09-12T21:43:28.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-09-08T05:38:46.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T04:41:59.836Z (over 1 year ago)
- Language: QML
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Qt Demo
## Graphics
- StackView; navigating with pop() and push().
- Use of the `qtquickcontrols2.conf` file to enable Android's Material style.
- Animation on state changes.
- Scrolling a listview.
- Displaying a listmodel with listview's delegate.
- TODO hide back button when nothing to pop()
- TODO screen agnostic sizes
- TODO min and max sizes
- TODO test for accessibility
## Logic
- Defining a custom Qt object in C++.
- Qt context, set properties from C++.
- Signals in DataObject.
- Signals and slots in NotificationClient.
- Defining a listmodel.
- States.
- TODO communicating with an http server, with and without ssl
- TODO all sensors
- TODO location
## Android Specific
- QAndroidJniObject
- conditional compilation using `#if defined(Q_OS_ANDROID)` and .pro file
- Java source code in android-sources/src/org/.../*.java
- Java is registered in android-sources/AndroidManifest.xml
## Installation
Developed using the open source version of the Qt Creator version 5.7.0.
Tested on an Android emulator and on an Ubuntu desktop.
Open the `.pro` file in a recent version of QtCreator to start developing.
## Utilities
takes tags, attributes, any data, children
generates
DTD, XML parser, XML generator, C++ QObject, Java object
with support for including other files/code segments (CPP-style) in the C++ and Java source code
goal: less than 100 lines, excluding C++ and Java templates
need dtd generation, xml generation, template generation, file insertion into templates