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

Tutorial on how to create QT app with C++ plugin and embedd C++ class

Scheduled Pinned Locked Moved App Development
6 Posts 3 Posters 1.6k Views 3 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.
    • J Offline
      jimmiejohnsson84
      last edited by 21 Jan 2018, 18:06

      Hi All,

      I wrote this up as I was making my own program. I decided to make a simple tutorial as I could not find anything online that showed me how to do this. If your good at QT already than this is probably a cake-walk for you, but Im new to QT so for me it was a bit tricky.

      The tutorial shows you how to create a QT project with a C++ plugin using clickable.
      In the example I will create a list view, which displays a list in the GUI, and connect it to a C++ class I have created in the plugin and feed the list view in the GUI with the items created from C++.

      It is available at: https://drive.google.com/drive/folders/1fiSqgFEDz--fSb9CtGgLzJSRCias2pdP

      A disclaimer: I have note yet received my Nexus 5 phone and therefore I have only been able to experiment with this in desktop mode. I dont know yet if it will work on an actual phone. If anyone tests it out on a phone - do let me know how it went.

      /Jimmie

      G 1 Reply Last reply 21 Jan 2018, 20:19 Reply Quote 3
      • G Offline
        guru @jimmiejohnsson84
        last edited by 21 Jan 2018, 20:19

        @jimmiejohnsson84 said in Tutorial on how to create QT app with C++ plugin and embedd C++ class:

        Hi All,

        I wrote this up as I was making my own program. I decided to make a simple tutorial as I could not find anything online that showed me how to do this. If your good at QT already than this is probably a cake-walk for you, but Im new to QT so for me it was a bit tricky.

        The tutorial shows you how to create a QT project with a C++ plugin using clickable.
        In the example I will create a list view, which displays a list in the GUI, and connect it to a C++ class I have created in the plugin and feed the list view in the GUI with the items created from C++.

        It is available at: https://drive.google.com/drive/folders/1fiSqgFEDz--fSb9CtGgLzJSRCias2pdP

        A disclaimer: I have note yet received my Nexus 5 phone and therefore I have only been able to experiment with this in desktop mode. I dont know yet if it will work on an actual phone. If anyone tests it out on a phone - do let me know how it went.

        /Jimmie

        How one can clone this repository?

        J 1 Reply Last reply 21 Jan 2018, 20:34 Reply Quote 0
        • J Offline
          jimmiejohnsson84 @guru
          last edited by 21 Jan 2018, 20:34

          @guru
          Its not a repository, its just a google drive. So you can just download all the files if you want to try it out.

          /Jimmie

          G 1 Reply Last reply 21 Jan 2018, 20:48 Reply Quote 0
          • G Offline
            guru @jimmiejohnsson84
            last edited by 21 Jan 2018, 20:48

            @jimmiejohnsson84 said in Tutorial on how to create QT app with C++ plugin and embedd C++ class:

            @guru
            Its not a repository, its just a google drive. So you can just download all the files if you want to try it out.

            /Jimmie

            Thanks, and how do I do this from a UNIX cmd line?

            J 1 Reply Last reply 21 Jan 2018, 21:09 Reply Quote 0
            • J Offline
              jimmiejohnsson84 @guru
              last edited by 21 Jan 2018, 21:09

              @guru

              I dont know if you even can do it from the command line. I would recommend opening the link in your browser (i.e. firefox if your running from ubuntu which Im guessing you are). At the top of the page is a 'Download all' (or similiar, mine is in swedish so translation might differ). That will give you the possibility to download the whole folder as zip-file.

              Of course I would have prefered to have it on Github or something like that, but at this point Im just not willing to fork over 7$ to Github for that. Maybe if I create something more complex.

              Most of the files uploaded are generated by clickable anyways, so I just put it there for ease of browse and comparison. If you read the "README INSTRUCTIONS.txt" the first step is to use clickable to create your own project and then you can fill in with my code in the files generated. Its really not that much code.

              /Jimmie

              D 1 Reply Last reply 28 Jan 2018, 15:42 Reply Quote 0
              • D Offline
                DanChapman @jimmiejohnsson84
                last edited by DanChapman 28 Jan 2018, 15:42

                @jimmiejohnsson84 githubs free for public projects. You only have to pay for private projects

                Support Dekko development: https://www.patreon.com/dekkoproject

                1 Reply Last reply Reply Quote 0
                6 out of 6
                • First post
                  6/6
                  Last post