GUI (Qt6)
As of Dec 12, 2022
Install QT Creator
Create a Qt account if you don't have one. We are using the Community (Open Source) version of QT. It is free for non-commercial use.
If you are upgrading from QT5, you can just open the MaintenanceTool, in the Qt Folder, or Start Menu. Add the new checked items below.
When you will get to Select Components choose the following options. You can come back and add / remove items later using their maintenance tool if you missed one or added too many.
Under Select Categories check Latest supported releases and click Filter
Under Qt 6.4.1 choose MinGW 11.2.0 64Bit and Qt Serial Port
Under Developer and Designer Tools, add MinGW 11.2.0 64-bit
Complete the installation wizard.
Open Qt Creator and Load the Project File
Choose File -> Open File or Project
After cloning the Git repository using these instruction: Firmware Setup.
Choose
/src/gui/HeadTracker.pro
When you will open it for the first time, it will ask how do you want to configure it. If you have multiple choices be sure to check the Desktop Qt 6.4.1 MinGW 64-bit option and click Configure Project
In Qt set the Release or Debug mode. You will probably want Debug.
Other Notes
Qt uses a Shadow build by default. Which means it builds everything in a separate folder. You need to add an item into that folder for the firmware list to work. I added it before a release.
Default shadow build folder
gui/build-HeadTracker-Desktop_Qt_6_4_1_MinGW_64_bit-Debug
There is no background since it's run from the shadow build folder. Copy stylesheet.css and Background.svg from gui/src/css into the output folder. Which when building in debug mode will be in gui/build-HeadTracker-Desktop_Qt_6_4_1_MinGW_64_bit-Debug/debug.
You need to create a sources.ini (The firmware sources). The below file will allow you to see all the current online firmware in the GUI list. You can also add a localfirmware.ini if you want.
sources.ini
localfirmware.ini
You can customize this file so it will directly grab from you firmware build folder, so you can just click upload firmware to use the one just compiled. See the last section on how to do this.
Last updated