How to use Qt's example project as a Bike Dashboard?
-
I'm trying out qt to build a Dashboard for a electric scooter that which I am building. I found this (https://doc.qt.io/qtdesignstudio/qtdesignstudio-ebikedesign-example.html) neat dasboard on the internet and would like someone to walk me through how all can I proceed with this.
Most of the features that I need is already present in the above mentioned project.
I accessed that project in Designer Studio Community Edition in where this project was present as an Example.
I hoping to deploy this application to a raspberry pi with a touch display which would be present on our bike.
The problems that I would like to get solved are:- Is it possible to connect my sensor data's to this application? If so, how?
- How should I build the qt project so that I should be able to run it on the raspberry pi and the project should boot first when the system boots.
Any help would be greatly beneficial.
Reference:
https://doc.qt.io/qtdesignstudio/studioexamples.html
https://doc.qt.io/qtdesignstudio/qtdesignstudio-ebikedesign-example.htmlImage References
-
Hey!
Awesome project you have going on there. Let me guide you a bit forward.
For using Qt Design Studio with Raspberry you have couple options, you can use Qt Creator and run a B2Qt image (commercial option) on it or you can get going by installing Qt development environment on RaspOS (formerly Raspbian). It sounds a bit complex but it can be done.
After you have the toolchain running, you can run & deploy your application from Qt Creator at least to the target. How to get started is described here: https://wiki.qt.io/Raspberry_Pi_Beginners_GuideAll right, so if you have exported the UI project and compiled it with Qt Creator, you are already quite far but what is missing is - the backend. Qt Design Studio is UI composition tool, meaning you can do functional UI but not the backend. What you need to do next is to build the backend that deals with the sensors and once you have it, tie that up with the properties, signals and slots of the UI layer.
Let me know if this helps you!