Use paho-mqtt with PyQt
问题 How I can use callback function from QThread? Callback function on_message does not print any data. In run() I connect to mqtt-broker and subscribe on topic. on_message must work when I get new message. Example simple QT app. Change value event connected with simple QLCD. Subscription topic took from dashboard #!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from PyQt5.QtCore import Qt, QThread, pyqtSignal from PyQt5.QtWidgets import (QWidget, QLCDNumber, QSlider, QVBoxLayout,