Package Qtcore (this non-QT project uses qstring,qjson,qfileinfo,qfile and other classes)

Source: Internet
Author: User

Individually encapsulated Qtcore

QT has been used for a long time, many things QT is well encapsulated. If suddenly one day, do not use QT development, is not used to.
For example we often use qstring many methods, conversion between string,wstring, arg format.
Also, for example, QT provides JSON-related use.
If we extract these QT methods, we encapsulate them individually. In other non-QT projects, the normal use will be good.
In fact, qstring,qjson,qfileinfo and so on, are encapsulated in the Qtcore.

Here, I cut part of the diagram, and there is a lot to see in the documentation.

Extracting Qtcore Library steps

We need Qt Qt5Core.dll, Qt5Core.lib, Qtcroe related header files (the QT installation directory is copied over)

1. this contains the Qtcore related header file path

2. The QtCore.lib file path is included here

3. Add the QtCore.lib file here


4. Copy the QtCore.dll to the application peer directory

OK, here, our configuration has been set up, at this time, we just need to go to our corresponding project, call the relevant QT method compilation can be.

Here is my qstring method for calling Qt in the Win32 project. Compile successfully!

End

Just for the record, just for sharing! May the writing be of help to you. Good good Study, day up!

http://blog.csdn.net/ly305750665/article/details/65948096

List of classes contained by Qtcore: http://doc.qt.io/qt-5/qtcore-module.html

Package Qtcore (this non-QT project uses qstring,qjson,qfileinfo,qfile and other classes)

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.