754 GitHub stars and counting — emqx/qmqtt is a C++ project TopGit is tracking across repositories on the platform. MQTT client for Qt
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Please compile the library with Qt >= 5.3 version. On Windows you need to specify CONFIG += NO_UNIT_TESTS, since gtest is not supported.
SSL is enabled by default, if the version of OpenSSL < 1.0.2, SSL may not be supported.
Disable the SSL in CMakeLists.txt (cmake):
option( ${PROJECT_NAME}_SSL "Enable SSL support for MQTT" OFF )
Disable the SSL with src/mqtt/qmqtt.pro (qmake):
CONFIG += QMQTT_NO_SSL
To add websocket support, compile the library with Qt >= 5.7, and specify 'CONFIG += QMQTT_WEBSOCKETS'.
This also works when compiling qmqtt for WebAssembly.
QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
// Add custom SSL options here (for example extra certificates)
QMQTT::Client *client = new QMQTT::Client("example.com", 8883, sslConfig);
client->setClientId("clientId");
client->setUsername("user");
client->setPassword("password");
// Optionally, set ssl errors you want to ignore. Be careful, because this may weaken security.
// See QSslSocket::ignoreSslErrors(const QList<QSslError> &) for more information.
client->ignoreSslErrors(<list of expected ssl errors>)
client->connectToHost();
// Here's another option to suppress SSL errors (again, be careful)
QObject::connect(client, &QMQTT::Client::sslErrors, [&](const QList<QSslError> &errors) {
// Investigate the errors here, if you find no serious problems, call ignoreSslErrors()
// to continue connecting.
client->ignoreSslErrors();
});
This library has been developed and tested against Qt 5. Active work on it has stopped since Qt released its own mqtt module several years ago. There are currently no plans for further extensions except for smaller rectifications and bug fixing. At your own risk you may use it in Qt6 projects using cmake.
The most recent commit recorded on emqx/qmqtt was 2 months ago, based on the GitHub push timestamp. The repository has 345 forks — one of the better signals of community interest.
How many stars does emqx/qmqtt have?
emqx/qmqtt has 754 GitHub stars — refresh the page for the live number, or check github.com/emqx/qmqtt. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is emqx/qmqtt written in?
emqx/qmqtt is written primarily in C++. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is emqx/qmqtt associated with?
GitHub's repository topics for emqx/qmqtt: "emqx", "mqtt", "mqtt-client", "qmqtt", "qt". TopGit's editorial category is open-source.
Where do I read more about emqx/qmqtt?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/emqx/qmqtt is the definitive source.
Read full README in the tab above.
Curious whether qmqtt is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about qmqtt.