Hi wysota
The first error takes me to this part of the code.
Qt Code:
  1. void MessageWindow::customEvent(QEvent* event)
  2. {
  3. if (static_cast<MessageWindow::EventType>(event->type()) == MessageWindow::MessageEvent)
  4.  
  5. msgTextEdit.append(dynamic_cast<MessageEvent::MessageEvent* >(event)->msg); // '{ctor}' Error takes me to this line
  6. }
To copy to clipboard, switch view to plain text mode 

the second error takes me to this line.
Qt Code:
  1. QCoreApplication::postEvent(this, new MessageEvent::MessageEvent(qmsg));
To copy to clipboard, switch view to plain text mode