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
-
@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?
-
@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
-
@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?
-
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
-
@jimmiejohnsson84 githubs free for public projects. You only have to pay for private projects