Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:qt [2022/08/03 04:48] – [Demo] darron | tools:qt [2022/08/03 05:01] (current) – [Install] darron | ||
---|---|---|---|
Line 40: | Line 40: | ||
__Strip__ | __Strip__ | ||
+ | |||
+ | Due to a problem with WSL1 the Qt5 core library file needs to be stripped. | ||
+ | |||
< | < | ||
strip --remove-section=.note.ABI-tag / | strip --remove-section=.note.ABI-tag / | ||
Line 45: | Line 48: | ||
==Qt6== | ==Qt6== | ||
- | |||
- | This section is incomplete at this time. | ||
__Base__ | __Base__ | ||
Line 59: | Line 60: | ||
===Demo=== | ===Demo=== | ||
+ | |||
+ | QT Creator is used to create project files and edit source code. | ||
< | < | ||
qtcreator | qtcreator | ||
</ | </ | ||
+ | |||
+ | Follow this guide to create a simple project. | ||
< | < | ||
Line 76: | Line 81: | ||
__main.cpp__ | __main.cpp__ | ||
- | This is clearly not a good example of a Qt application, | + | This is clearly not a good example of a Qt application, |
< | < | ||
#include < | #include < | ||
#include < | #include < | ||
- | int main(int argc, char *argv[]) | + | int |
+ | main(int argc, char **argv) | ||
{ | { | ||
- | | + | |
- | | + | |
+ | |||
+ | return 0; | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Qt5 make is used to create a working `Makefile' | ||
< | < | ||
Line 95: | Line 105: | ||
Hello World! | Hello World! | ||
</ | </ | ||
+ | |||
+ | To build for Qt6, use qmake6 instead of qmake above. | ||