messagereceiver.cpp 311 B

123456789101112
  1. #include "messagereceiver.h"
  2. #include <QDebug>
  3. MessageReceiver::MessageReceiver(QObject* parent)
  4. : QObject(parent)
  5. {}
  6. void MessageReceiver::receivedMessage(int instanceId, QByteArray message)
  7. {
  8. qDebug() << "Received message from instance: " << instanceId;
  9. qDebug() << "Message Text: " << message;
  10. }