How to add dependencies in the QT library of QT creator
Write by nine days Yan Ling (jtianling) -- blog.csdn.net/vagrxie
Discuss newsgroups and documents
Here, QT creator is really not a good product. When creating a project, you can use the GUI to select the QT module that you need to depend on, in this way, you can simply include the header file name, but if you do not select the header file, you need to include the relative directory. For example, if I started to select the dependency qttest module, I only need
# Include <qtest>
However, I didn't choose qttest at the beginning (I didn't think of sleep here). At this time, I must
# Include <qttest/qtest>
The most strange thing is that I have no way to create a project to add the library dependency of qttest ...... As a result, the connection will always fail (LD reports an error). After a while, you will not find any part of the creator that can be added (hopefully someone else can give instructions ), no relevant information can be edited in the PRO project. There is no way to edit it. manually add it in the makefile under the project directory (if it has not been developed in Unix/Linux, people who have learned makefile + GCC will probably vomit blood ). In addition, it is also understood that a relative path must be added without a module. The corresponding directory is not specified in the partition des of makefile. After this parameter is specified, the database dependency is selected at the beginning.
WriteNine days Yan Ling(Jtianling) -- blog.csdn.net/vagrxie