Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:qt [2022/08/03 04:52] – [Install] darrontools:qt [2022/08/03 05:01] (current) – [Install] darron
Line 48: Line 48:
  
 ==Qt6== ==Qt6==
- 
-This section is incomplete at this time. 
  
 __Base__ __Base__
Line 88: Line 86:
 #include <iostream> #include <iostream>
  
-int main(int argc, char *argv[])+int 
 +main(int argc, char **argv)
 { {
-    QCoreApplication a(argc, argv);+        QCoreApplication App(argc, argv);
  
-    std::cout << "Hello World!\r\n";+        std::cout << "Hello World!" << std::endl; 
 + 
 +        return 0;
 } }
 </code> </code>
  
-Qt make is used to create a working Makefile which is used to build the application.+Qt5 make is used to create a working `Makefilewhich is used to build the application.
  
 <code> <code>
Line 104: Line 105:
 Hello World! Hello World!
 </code> </code>
 +
 +To build for Qt6, use qmake6 instead of qmake above.