I already tried that:
void MessageWindow
::customEvent(QEvent* event
) {
if (static_cast<MessageWindow::EventType>(event->type()) == MessageWindow::MessageEvent)
msgTextEdit.append(dynamic_cast<MessageEvent* >(event)->msg);
}
void MessageWindow::customEvent(QEvent* event)
{
if (static_cast<MessageWindow::EventType>(event->type()) == MessageWindow::MessageEvent)
msgTextEdit.append(dynamic_cast<MessageEvent* >(event)->msg);
}
To copy to clipboard, switch view to plain text mode
------ Build started: Project: QESPTA, Configuration: Release Win32 ------
Compiling...
MessageWindow.cpp
.\MessageWindow.cpp(94) : error C2061: syntax error : identifier 'MessageEvent'
.\MessageWindow.cpp(122) : error C2061: syntax error : identifier '{ctor}'
Build log was saved at "file://c:\Documents and Settings\bnilsson\My Documents\Visual Studio 2008\Projects\qextserialport-1.2win-alpha\examples\qespta\obj\BuildLog.htm"
QESPTA - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
------ Build started: Project: QESPTA, Configuration: Release Win32 ------
Compiling...
MessageWindow.cpp
.\MessageWindow.cpp(94) : error C2061: syntax error : identifier 'MessageEvent'
.\MessageWindow.cpp(122) : error C2061: syntax error : identifier '{ctor}'
Build log was saved at "file://c:\Documents and Settings\bnilsson\My Documents\Visual Studio 2008\Projects\qextserialport-1.2win-alpha\examples\qespta\obj\BuildLog.htm"
QESPTA - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
To copy to clipboard, switch view to plain text mode
It need some more to work.
Bookmarks