How does qmake generate include path?
If you have read my post “Where does Qt find header files“, you have known that qmake will generate some include paths in the makefile to compile your project. For […]
If you have read my post “Where does Qt find header files“, you have known that qmake will generate some include paths in the makefile to compile your project. For […]
Some qmake variables, functions, and conditions are hard to know their meanings. I list here for a memo. $$replace(variable, old_string, new_string): replace old_string in variable with new_string. $$unique(variable): remove duplicated […]
This seems an old topic. If you ever learned C programming language, you must know the search rules for the header files. The search rules of gcc for headers are […]
When you open the .pro file of a Qt project at the first time, you will be prompted to configure the project. The “Configure Project” dialog shows you the available […]
The usual way to use QNetworkAccessManager and QNetworkReply is: QNetworkAccessManager nam; voif fun() { QNetworkRequest request; request.setUrl(QUrl(“https://myprogrammingnotes.com”)); connect(&nam,SIGNAL(finished(QNetworkReply*)),this,SLOT(replyFinished(QNetworkReply*))); QNetworkReply *reply=nam.get(request); } void replyFinished(QNetworkReply* reply) { reply->readAll(); } According to https://doc.qt.io/qt-5/qnetworkaccessmanager.html, you […]
When we talk about compatibility, three objects/entities are involved. We say object2 is compatible with object1 if object3 that uses object1 is still working when it switches object1 to object2. […]
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 […]