messagereceiver.cpp 310 B

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