define macro in pro file
Why need to define macros in Qt project file? I have a tool source library. The library contains several header files and source files. I used conditional compilation in both […]
Why need to define macros in Qt project file? I have a tool source library. The library contains several header files and source files. I used conditional compilation in both […]
The TAB character literal can be written as ‘\t’ or ‘ ‘ in your C/C++ source code. They represent the same character. Character literals are enclosed in single quotes […]
Only after you read my post about how Qt Creator interacts with GDB and what Qt pretty printers are, can you have some basic background knowledge about how to write […]
win32, unix,win32-g++,win32-msvc,CONFIG, etc. in Qt .pro file are called conditions. Multiple conditions can be combined with colons. Conditions are followed by one or more expressions. Multiple expressions should be enclosed […]
Every process has a stack size limit. If a program’s stack uses up the memory specified by the maximum stack size, it will crash. How to check the stack size […]
Occasionally, we need to convert a number that represents the code point of a character to a QString or QChar. You may want to use the following constructor of QString: […]
The parsing function for .pro file is in QMakeParser::read. It uses two buffers: tokBuff: store the parsed tokens of a .pro file xprBuff: only store a line(or part of a […]
When debugging in Qt Creator, you can see the real-time values of variables in the Locals window and the Expressions window. In the above example, c is a variable of […]
If you’ve read my post Qt Thread, you should be able to run a task in a new thread now. But you may always want to do some controls on […]
An http request issued by firefox has the following headers. GET / HTTP/1.1\r\n Host: google.com\r\n User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0\r\n Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n Accept-Language: en-US,en;q=0.5\r\n Accept-Encoding: […]