• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Ubuntu Touch Programming Course

Scheduled Pinned Locked Moved App Development
documentationubuntu touch
113 Posts 27 Posters 67.7k Views 12 Watching
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.
    • A Offline
      advocatux @Pulsar33
      last edited by 20 Sept 2018, 07:13

      @pulsar33 just in case you don't know it, @dobey is working on https://github.com/dobey/ergo

      P 1 Reply Last reply 24 Sept 2018, 08:09 Reply Quote 0
      • P Offline
        Pulsar33 @advocatux
        last edited by 24 Sept 2018, 08:09

        @advocatux : thanks but I don't find a thread speaking of that on this forum and github is a bit vague for me.

        @Flohack : any news ?

        Best regards
        Pulsar33

        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

        A 1 Reply Last reply 24 Sept 2018, 09:05 Reply Quote 0
        • A Offline
          advocatux @Pulsar33
          last edited by 24 Sept 2018, 09:05

          @pulsar33 what I meant with that post is just to let you know that there will be a new toolkit 🙂

          1 Reply Last reply Reply Quote 0
          • P Offline
            Pulsar33 @flohack
            last edited by 30 Sept 2018, 12:02

            @flohack said in Ubuntu Touch Programming Course:

            FYI we are in an experimental state with building the sdk again: https://github.com/ubports/usdk-image-tools/pull/1 - if this Pull Request is finally merged it should be able to generate a new SDK 🙂

            BR

            @Flohack : I read on your link :

            • Generate the SDK for Ubports #1
              Merged
              mardy merged 5 commits into ubports:master from mardy:ubports 21 days ago

            But I'm not sure to understand. Can we use now the Ubuntu Touch Programming Course with the good sdk ?

            Best regards
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            F 1 Reply Last reply 1 Oct 2018, 19:02 Reply Quote 0
            • F Offline
              flohack @Pulsar33
              last edited by 1 Oct 2018, 19:02

              @pulsar33 Me neither, please ask @mardy or @mimecar 🙂

              My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

              P 1 Reply Last reply 2 Oct 2018, 06:59 Reply Quote 0
              • P Offline
                Pulsar33 @flohack
                last edited by 2 Oct 2018, 06:59

                @flohack : Hello Flohack
                Thanks for the answer anyway
                @mimecar never replied me ...
                @mardy I don't know ...

                It seems that there are some explanations in this new thread (work in progress)

                Have a nice day
                Pulsar33

                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shelllavie
                  last edited by 3 Oct 2018, 07:19

                  Hi, everyone!

                  I´m starting to play with the examples in the book in order to build my own apps. Just last night I used clickable to run the WeatherRecorder app on my desktop (xenial); everything ran pretty well except for the images temperature.png and search.png not loading.

                  The terminal complains it cannot find them in the build path. Any ideas?

                  Thanks in advance.

                  F 1 Reply Last reply 3 Oct 2018, 09:26 Reply Quote 0
                  • F Offline
                    fulvio @shelllavie
                    last edited by fulvio 10 Mar 2018, 09:46 3 Oct 2018, 09:26

                    Hi @shelllavie
                    the sample applications ”WeatherRecorder” and ”WeatherRecorderChart” was made using the Ubuntu-sdk-ide.
                    After writing them, that tool was deprecated and replaced by ‘clickable’.

                    Running the the sample apps with clickable can be little issues.


                    Issue 1: icon images .png ( temperature.png and search.png) are not showed when the running on a device (or desktop) and are not include in .click package.

                    Fix: Add this:
                    $$files(*.png,true) \
                    at the existing entry “QML_FILES” in the WeatherRecorde.pro file
                    the one placed inside the folder containing .png icon and qml files).
                    With that modification should like this:

                    QML_FILES += $$files(.qml,true)
                    $$files(
                    .png,true)
                    $$files(*.js,true)


                    Issue 2: there are incongruous values for ‘applicationName’ parameters in Main.qml and “manifest.json.in” files.
                    This could cause an error when trying to run the application on a device.

                    Fix: Align the values in “Main.qml” and “manifest.json.in” to have the same value in both files.

                    In Main.qml
                    applicationName: "weatherrecorderchart"

                    manifest.json.in
                    "name": "weatherrecorderchart",


                    I can't update sources on github because the owner of the repo is mimecar.

                    tnx

                    S 1 Reply Last reply 3 Oct 2018, 11:53 Reply Quote 1
                    • S Offline
                      shelllavie @fulvio
                      last edited by 3 Oct 2018, 11:53

                      @fulvio
                      Hi @fulvio!

                      Thanks for the valuable info and for the apps (they contain a high teaching value) 🙂

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        shelllavie
                        last edited by 7 Oct 2018, 12:42

                        Happy Sunday everyone!

                        @fulvio or anyone who knows:

                        How to make the weatherrecorderchart app responsive? I thought the "width: units.gu(110) ..." bit in the Main.qml file would do the job, but after installing it on my BQ E5 the view doesn't fit the screen resolution. Any ideas would be really appreciated.

                        Bye for now!0_1538916160871_photo_2018-10-07_14-42-03.jpg

                        F 1 Reply Last reply 7 Oct 2018, 18:41 Reply Quote 0
                        • F Offline
                          fulvio @shelllavie
                          last edited by fulvio 10 Jul 2018, 18:42 7 Oct 2018, 18:41

                          Hi @shelllavie
                          that is a known "problem" not solved to introduce the next chapter topic about adapting the sample application layout at the device screen (phone or tablet).
                          I have sent the chapter to @mimecar some time ago but due to an important issue Miguel suspended the course for a while (maybe you know about that, if you are subscribed at the course Telegram channel). I don't know when will be published (i am not the owner of the course, i have only written only some contents).

                          To solve the application size issue you can use a Layout named "ConditionalLayout" (https://api-docs.ubports.com/sdk/apps/qml/Ubuntu.Layouts/ConditionalLayout.html?highlight=conditionallayout).

                          Another solution could be use a "Loader" component (https://api-docs.ubports.com/sdk/apps/qml/Ubuntu.Layouts/ConditionalLayout.html?highlight=conditionallayout).

                          Useful links:
                          https://askubuntu.com/questions/446755/what-does-gu-stand-for
                          https://blog.ubuntu.com/2015/06/16/the-grid-system-in-detail

                          Tnx

                          S 1 Reply Last reply 8 Oct 2018, 07:34 Reply Quote 0
                          • mimecarM Offline
                            mimecar
                            last edited by 7 Oct 2018, 19:40

                            Goodnight.

                            First of all I want to apologize for having the course so stopped. At the end of April an event occurred that has affected me a lot. For that reason, anything that is not day to day has been stopped. Little by little I'm recovering but it's hard for me to continue.

                            In my planning I thought I would have migrated the course to Sphinx at the end of September. This has not been possible and I think that for the moment I will continue with GitBook. I will move to the new version even if I lose the documentation in PDF / ePub format. Later I'll make the migration to Sphinx.

                            @shelllavie, I write down the changes and add them in the next update. If you see that I forget to do it, you remind me.

                            @Pulsar33, Sorry for not answering. I read the forum but I have to take time to answer. I have not checked if the new SDK works, but remember that you can use the version that exists in the virtual machine of the course.

                            If I have an answer for answering, don't hesitate to ask me. I will try to answer on the same day.

                            Greetings.

                            P 1 Reply Last reply 8 Oct 2018, 07:52 Reply Quote 1
                            • S Offline
                              shelllavie @fulvio
                              last edited by 8 Oct 2018, 07:34

                              Hi @fulvio!

                              Thanks for the info about ConditionalLayout and the links.

                              @mimecar No problem, mate; hopefully the course will move on little by little. Thanks a lot for it.

                              Cheers!

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                Pulsar33 @mimecar
                                last edited by 8 Oct 2018, 07:52

                                @mimecar : sorry if you had problems. I know what it is ...
                                Take care
                                Pulsar33

                                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                1 Reply Last reply Reply Quote 1
                                • mimecarM Offline
                                  mimecar
                                  last edited by 13 Oct 2018, 11:31

                                  I have migrated the programming course to the new version of Gitbook. At the moment it will only be available in HTML format. If there is interest, I will export it to PDF and ePUB formats.
                                  https://mimecar.gitbook.io/qt-course/

                                  1 Reply Last reply Reply Quote 1
                                  • mimecarM Offline
                                    mimecar
                                    last edited by 9 Sept 2019, 18:52

                                    Goodnight.

                                    For personal reasons I had the course stopped. Although I have been preparing documentation in the meantime, I have not published it yet. I will make some changes that affect the course:

                                    • The virtual machine (with the Ubuntu Touch SDK) can be downloaded until next Sunday. Then I will delete the file.
                                    • I will update the course so that it is based on Qt Creator of PC. Most of the code can be used in Ubuntu Touch with minor changes.
                                    • Although most of the content will be maintained, I will generate the screenshots again so they take the PC as a reference.
                                    • The documentation will use Sphinx as a tool (the same as UBports). This way it will be easier to manage the translations.
                                    • The course code will be posted on GitLab (now it is on GitHub). The generated files (ePub, PDF and HTML) will be available on my website.

                                    I will keep you informed of the news.

                                    A greeting.

                                    1 Reply Last reply Reply Quote 8
                                    • arubislanderA Offline
                                      arubislander
                                      last edited by 10 Sept 2019, 06:08

                                      Thank you for continuing and expanding this valuable resource for the community!

                                      🇦🇼 🇳🇱 🇺🇸 🇪🇸
                                      Happily running Ubuntu Touch
                                      Google Pixel 3a (20.04 DEV)
                                      JingPad (24.04 preview)
                                      Meizu Pro 5 (16.04 DEV)

                                      1 Reply Last reply Reply Quote 2
                                      • mimecarM Offline
                                        mimecar
                                        last edited by 12 Jun 2020, 17:01

                                        Good afternoon.

                                        I just published a new chapter of the course. This chapter explains how Clickable works and how to use Clickable to create a desktop application and an application that runs on Ubuntu Touch.

                                        There are some changes in the course:

                                        • The new server is ReadTheDocs. https://qt-programming-course-sphinx.readthedocs.io
                                        • The course is by default in English and can be translated with .pot files. At the moment the languages are English and Spanish.
                                        • The original chapters are also published in English at the same address. Since I have to review them to remove dependency from Ubuntu Touch SDK, they have a "Legacy" in the title.

                                        I hope you like it.

                                        1 Reply Last reply Reply Quote 8
                                        • ? Offline
                                          A Former User
                                          last edited by 12 Jun 2020, 20:36

                                          Thank you, very helpful 🙂

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