Library dependency of QT creator

Source: Internet
Author: User
Tags qtest

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.