Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    QML Templates and Tools

    App Development
    6
    12
    739
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CiberSheep
      CiberSheep last edited by CiberSheep

      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?

      CiberSheep 1 Reply Last reply Reply Quote 9
      • CiberSheep
        CiberSheep @CiberSheep last edited by

        Updated the repo with an example for importing a file from the Content Hub (see the logs when you do)

        1 Reply Last reply Reply Quote 0
        • Krille
          Krille last edited by

          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?

          CiberSheep 1 Reply Last reply Reply Quote 1
          • K
            kugiigi last edited by

            We had a similar thing before right? Something like the component store.

            CiberSheep 1 Reply Last reply Reply Quote 1
            • CiberSheep
              CiberSheep @Krille last edited by

              @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?

              1 Reply Last reply Reply Quote 0
              • CiberSheep
                CiberSheep @kugiigi last edited by

                @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...

                1 Reply Last reply Reply Quote 0
                • poVoq
                  poVoq last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fulvio last edited by

                    if can be useful: https://github.com/fulvio999/ubports_app_templates

                    CiberSheep 1 Reply Last reply Reply Quote 1
                    • CiberSheep
                      CiberSheep @fulvio last edited by

                      @fulvio excellent!

                      1 Reply Last reply Reply Quote 0
                      • CiberSheep
                        CiberSheep last edited by

                        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:
                          • https://open-store.io/manage/turnstile.cibersheep
                          • https://open-store.io/app/circlepuzzle.cibersheep
                        • Updated About template with a better code. MR are welcome as it might be well improved.
                        1 Reply Last reply Reply Quote 1
                        • arubislander
                          arubislander last edited by arubislander

                          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... 😅

                          CiberSheep 1 Reply Last reply Reply Quote 0
                          • CiberSheep
                            CiberSheep @arubislander last edited by

                            @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 🙂

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post