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

    Changing the default version of qtcreator for Clickable

    App Development
    4
    6
    176
    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.
    • U
      utuser
      last edited by utuser

      Hello.

      I'm looking for advice on how could I change the default version of QtCreator ide, that gets used\opened after launching sudo clickable ide qtcreator.

      At the moment, the one set is 4.12.4 ("based on Qt 5.12.9 (GCC 5.4.0)"). It's likely the version I installed from apt repository. The reason I decided to install another one (6.4.1, using the official installer) are the QtQuick components, that are inaccessible in the previous one.

      I found a file ~/.clickable/QtProject/qtcreator/qtversion.xml with some of the following content:

        <variable>QtVersion.0</variable>
        <valuemap type="QVariantMap">
         <value type="int" key="Id">2</value>
         <value type="QString" key="Name">Qt %{Qt:Version} in PATH (qt5)</value>
         <value type="QString" key="QMakePath">/usr/lib/qt5/bin/qmake</value>
         <value type="QString" key="QtVersion.Type">Qt4ProjectManager.QtVersion.Desktop</value>
         <value type="QString" key="autodetectionSource">PATH</value>
         <value type="bool" key="isAutodetected">true</value>
      

      and tried to modify it but it didn't bring results.

      I haven't yet tried to reinstall qtcreator or Clickable but maybe there's yet some other way.

      I have qt5 and qt6 installed, Ubuntu 20.

      Thanks for help in advance

      PS. All along I assumed that it's possible to create UBTouch applications using QtCreator6 but I haven't actually found information about it. Is it true?

      arubislanderA lduboeufL 2 Replies Last reply Reply Quote 0
      • K
        kugiigi
        last edited by

        UT is still on Qt 5.12 so what you want wouldn't make sense yet.

        1 Reply Last reply Reply Quote 1
        • arubislanderA
          arubislander @utuser
          last edited by arubislander

          @utuser said in Changing the default version of qtcreator for Clickable:

          Hello.

          I'm looking for advice on how could I change the default version of QtCreator ide, that gets used\opened after launching sudo clickable ide qtcreator.

          When you run the above command, the qtcreator that is starred is the one in the Docker container, not the one you installed via apt.

          To use a different version you would need to use a customized container. But as @kugiigi mentioned, that doesn't make much sense right now.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          BQ Aquaris M10 FHD (16.04 RC)
          Google Pixel 3a (20.04 DEV)
          JingPad (20.04 DEV)
          Meizu Pro 5 (16.04 DEV)
          PinePhone / PineTab UT CE (20.04 daily)

          1 Reply Last reply Reply Quote 1
          • lduboeufL
            lduboeuf @utuser
            last edited by

            @utuser Hi do you know that QtCreator 9.0 landed on last clickable image ?.

            1 Reply Last reply Reply Quote 0
            • U
              utuser
              last edited by utuser

              Thanks for your replies.

              @kugiigi @arubislander
              That's resolves my main doubts.

              Is my setup the current standard and recommendation in UT app developement then?

              @lduboeuf said in Changing the default version of qtcreator for Clickable:

              @utuser Hi do you know that QtCreator 9.0 landed on last clickable image ?.

              I don't know. Just in case it's a joke, I'm a relatively new UT user and even newer in UT app development so I perhaps lack some of the (basic) knowledge yet, though try to make it up.
              But maybe I should't ask before making more research.
              I'd like to thank for sharing the videos on UT app developement though, they were the main reason for me for trying myself in UT development.

              I should have probably rephrased the question in title as it could probably be misleading

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

                @utuser said in Changing the default version of qtcreator for Clickable:

                Is my setup the current standard and recommendation in UT app developement then?

                There is no "standard' in UT app development. clickable is a very convenient option, but not everyone uses the ide option. I for instance use VSCodium as an editor. I find QtCreator has too many options I never use.
                Others use Atom or Vi or Nano as code editors. A handful of developers don't even use clickable.

                Feel free to try QtCreator via clickable ide. If it works for you, then that is the right tool.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                BQ Aquaris M10 FHD (16.04 RC)
                Google Pixel 3a (20.04 DEV)
                JingPad (20.04 DEV)
                Meizu Pro 5 (16.04 DEV)
                PinePhone / PineTab UT CE (20.04 daily)

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