No.
Here try this.
https://wiki.qt.io/Basic_Qt_Programm..._a_new_project
No.
Here try this.
https://wiki.qt.io/Basic_Qt_Programm..._a_new_project
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Be aware that between Qt4 (for which this book was written) and Qt5 (which you are presumably using), the locations of Qt header files and almost the entire Qt source tree layout changed completely. In addition, there are some argument changes to some very basic classes and methods. So examples from Blanchette and Summerfield's book will probably not immediately compile from the downloaded source. The book is otherwise a great way to learn the basics of the C++ side Qt.I bought Prentice Hall Book, "C++ GUI Programming with Qt 4, Second Edition" by Blanchette and Summerfield. (2008 Published)
Normally, you do not need to add explicit paths to Qt header files to the .pro file - when you "configure" the project with the correct "kit" in Qt Creator, it will set up the build environment to automatically find what it needs. The INCLUDEPATH directive in the .pro file is usually used for non-Qt headers, like those from external libraries.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks