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)