Skip to content

Commit eafdd03

Browse files
authored
update build guide for upgrading QT (#561)
1 parent 1c303fd commit eafdd03

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SerialPrograms/bin/
66
.DS_Store
77

88
build-*/
9+
build/
910

1011
# Qt config file on a user basis
1112
*.pro.user

SerialPrograms/BuildInstructions/Build-Windows-Qt6.8.3.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,32 @@ If you are unable or unwilling to use the online installer, the alternative is t
8383
- to: `Arduino-Source/build-SerialPrograms-Desktop_Qt_6_8_3_MSVC2022_64bit-RelWithDebInfo`
8484

8585

86+
## Upgrading Qt components
87+
88+
### Installing newer Qt version
89+
If you have already have older versions of Qt installed, but need to upgrade Qt components, you can use the Maintenance tool, which comes pre-instaled with Qt (C:\Qt\MaintenanceTool.exe).
90+
91+
- When prompted, in `Maintenance Actions`, choose `Add or remove components`.
92+
- You may select the components needed, as per the instructions above, for the newer version. And de-select old versions to remove them, if you wish.
93+
- Optional: In `Maintenance Actions`, you may also choose `Update components` as well. To update Qt Creator, and other components.
94+
95+
### Building with the newer Qt version
96+
- Open the `SerialPrograms` project in Qt, as outlined in the "Setup" section above.
97+
- In the toolbar, click `Edit` -> `Preferences`
98+
- Under `Kits` tab, choose the newer Qt version (e.g. Desktop Qt 6.8.3)
99+
<img src="images/QT-kits.png">
100+
101+
- Under `Compiler`, set it to Microsoft Visual C++ Compiler, if not already set.
102+
- Click `Ok`.
103+
- Click the Monitor symbol at the bottom left
104+
<img src="images/QT-kit-build.png">
105+
106+
- Under `Kit`: choose the desired Qt version.
107+
- Under `Build`: choose `Release with Debug Information`
108+
- Click the green arrow to compile and launch the program.
109+
- Optional: Move the `UserSettings` folder from the old build folder to the new build folder, to keep your old settings, such as the dev key.
110+
111+
86112
<hr>
87113

88114
**Discord Server:**
14 KB
Loading
50.9 KB
Loading

0 commit comments

Comments
 (0)