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

[Guide] Code completion on Qt Creator for Ubuntu.Components

Scheduled Pinned Locked Moved App Development
28 Posts 8 Posters 6.3k Views 6 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.
    • L Offline
      lduboeuf
      last edited by 4 Jun 2020, 14:49

      Video showing the WIP of having qtcreator running above clickable image :

      full code completion for all UT components and qml modules , and can launch directly the app, you can debug the c++ part also.
      The demo covers python and c++ clickable template, and address-book-app

      https://youtu.be/Exmgbb0VdC4

      A 1 Reply Last reply 11 Jun 2020, 07:10 Reply Quote 1
      • A Offline
        Abuabdellah @lduboeuf
        last edited by 11 Jun 2020, 07:10

        @lduboeuf

        is there a wiki to get code completion on ubuntu 19.10?

        L 1 Reply Last reply 11 Jun 2020, 16:41 Reply Quote 0
        • L Offline
          lduboeuf @Abuabdellah
          last edited by 11 Jun 2020, 16:41

          @Abuabdellah i don't know if Ubuntu.Components are installable on 19.10 but you can wait for the clickable ide qtcreator feature or try the 1st post Guide solutions

          A 1 Reply Last reply 11 Jun 2020, 21:43 Reply Quote 1
          • A Offline
            Abuabdellah @lduboeuf
            last edited by 11 Jun 2020, 21:43

            thank you @lduboeuf

            I didn't see html5 components on the image! isn't there or it is included in other image?

            root@ea8e2a8bedfb:/# ls usr/lib/x86_64-linux-gnu/qt5/
            bin  libexec  mkspecs  plugins  qml  qt.conf
            
            L 2 Replies Last reply 11 Jun 2020, 22:27 Reply Quote 0
            • L Offline
              lduboeuf @Abuabdellah
              last edited by 11 Jun 2020, 22:27

              @Abuabdellah Well html5 components is peobably elsewhere, here you are looking to qt qml one

              1 Reply Last reply Reply Quote 0
              • L Offline
                lduboeuf @Abuabdellah
                last edited by lduboeuf 6 Nov 2020, 22:30 11 Jun 2020, 22:29

                @Abuabdellah look here /usr/share/ubuntu-html5...
                dpkg -L ubuntu-html5-ui-toolkit

                A 1 Reply Last reply 11 Jun 2020, 23:27 Reply Quote 1
                • A Offline
                  Abuabdellah @lduboeuf
                  last edited by 11 Jun 2020, 23:27

                  thank you @lduboeuf

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doniks @lduboeuf
                    last edited by doniks 23 Aug 2020, 12:31

                    @lduboeuf said in [Guide] Code completion on Qt Creator for Ubuntu.Components:

                    have you installed locally QtQuickControl 2 ?
                    sudo apt install qtquickcontrols2-5-dev

                    you can see if any issue with paths in kits

                    Taking a new stab at this ... So, again resolving Ubuntu.Components in qml files works fine, but resolving Qt includes in cpp files does not. I have qtquickcontrols2-5-dev installed and I don't see anything screaming at me in the Kits section ... but maybe it's still wrong?! See attached. Qt version = None might be wrong?! But I can't select anything else.
                    kits.png

                    Update: In Kits -> Qt Versions there is nothing there. I guess that is the problem, but I can't figure out how to get anything in there ... I found some reports online that sudo apt install qt5-default might help, but it doesn't help me 😞

                    Update2: Now I manually added /usr/lib/x86_64-linux-gnu/qt5/bin/qmake in Qt Versions, and selected that in the Kit, closed and reopened, but still doesn't find any QtStuff
                    version.png

                    L 1 Reply Last reply 26 Aug 2020, 16:41 Reply Quote 0
                    • L Offline
                      lduboeuf @doniks
                      last edited by 26 Aug 2020, 16:41

                      @doniks well it seems there is definitly an issue with Qt5 path. probably you may found resources around about that

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        Talkless @lduboeuf
                        last edited by 8 Nov 2020, 10:23

                        @lduboeuf

                        Just to share my experience for developping Apps with QtCreator:

                        Should I use QtCreator from 16.04, ubuntu-sdk or can I use latest QtCreator form Qt online installer?

                        Volla Phone X

                        L 1 Reply Last reply 8 Nov 2020, 13:53 Reply Quote 0
                        • L Offline
                          lduboeuf @Talkless
                          last edited by 8 Nov 2020, 13:53

                          @Talkless You can use whatever QtCreator version, the only limit is to use the right Qt Version ( 5.9.5 currently and soon 5.12 )

                          Have you checked also theclickable ide qtcreator feature ?

                          T 1 Reply Last reply 8 Nov 2020, 17:02 Reply Quote 0
                          • T Offline
                            Talkless @lduboeuf
                            last edited by Talkless 11 Aug 2020, 17:10 8 Nov 2020, 17:02

                            @lduboeuf said in [Guide] Code completion on Qt Creator for Ubuntu.Components:

                            Have you checked also theclickable ide qtcreator feature ?

                            Yes, it did the trick! Very convenient.
                            EDIT: well, OK, it would be much more convenient if that qtcreator had "clickable" integration to avoid terminal, but that's not that bad.

                            Volla Phone X

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