ackStatus = "Connection Refused: bad user name or password"; break; case QMQTT::CONNACK_AUTH: ackStatus = "Connection Refused: not authorized"; break; } log(tr("connacked: %1, %2").arg(ack).arg(ackStatus)); */ } void MainWindow::onMQTT_error(QMQTT::ClientError err) { //todo...