QML Templates and Tools
-
List of Useful Code
I thought it would be useful to do a list of little templates, tools and maybe tricks to common problems we face when developing.
Templates
- About QML Template
- Button to Hide/Show Header
- Download Dialogue with Progress Bar
- Import Hub example. Click on the button to import a file and see in the logs the mimeType, url, etc
Tools
- Download Interceptor (download files that cannot be handled by the download manager
- Blob Saver (be able to download blob url)
Thanks @bhdouglass
Do you want to share yours? -
Updated the repo with an example for importing a file from the Content Hub (see the logs when you do)
-
Great. I was thinking about this too. What about creating Qml Plugins out of these so we can use git submodules to get updates from upstream and we dont need to copy them 1000x times. Or we create Debian packages and add them to the system image?
-
We had a similar thing before right? Something like the component store.
-
@Krille That is a great idea. @bhdouglass you and me got into the same path.
The idea (I think common) is to have those as templates one can use. I actually use the about in the repo quite often
So, what I need to change or do to have those prepared for them to be used?
-
@kugiigi Yep. Canonical had a store you could get BottomEdge previous to the BottomEdge, the Ogra radial bottom menu, and other part (some we are still use).
They are obsolete now but...
-
App templates like this:
https://gitlab.com/ubports/apps/qt-webengine-demo/Would probably also be cool to keep updated.
In general probably also a good place to start with the transition to qt quick controls 2.
-
if can be useful: https://github.com/fulvio999/ubports_app_templates
-
@fulvio excellent!
-
https://gitlab.com/cibersheep/qml-templates-for-ubuntutouch/
Update
- Added a new template: Rotate element. You can rotate an image or item and set some degrees to snap.
Maybe a Readme would be useful but the comments in the code should be enough.
Example of use: - Updated About template with a better code. MR are welcome as it might be well improved.
- Added a new template: Rotate element. You can rotate an image or item and set some degrees to snap.
-
This is a great idea for a community resource! Now how do I go about bookmarking this whole conversation thread?
EDIT: Now I see it is an old thread and I had already upvoted and bookmarked the first post way back then...
-
@arubislander said in QML Templates and Tools:
Now how do I go about bookmarking this whole conversation thread?
You can star projects in Git*b to receive updates