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 […]

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 […]

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: […]

qt .pro file parser

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 […]