Well that is what I did try before but some QT functions do not work as expected
if you have all your code in the main loop.
For example qWarning and qDebug can not be passed a QString but you have
to say ..
qDebug(str.toAscii().constData())
qDebug(str.toAscii().constData())
To copy to clipboard, switch view to plain text mode
or
qWarning("%s",str.toAscii().constData());
qWarning("%s",str.toAscii().constData());
To copy to clipboard, switch view to plain text mode
However once you pass control to the sub class of QCoreApplication then things
work as I expect.
barnaby
Bookmarks