Yes, at least I hope I have an event loop running. In my main this is my code..just the basics.
TestProgram test;
test.show();
splash.finish(&test);
return app.exec();
TestProgram test;
test.show();
splash.finish(&test);
return app.exec();
To copy to clipboard, switch view to plain text mode
In my 'test' object I receive the QCop events. The QCopChannel object is being created in my 'test' object.
QCopChannel *myEvents = new QCopChannel(GPIO);
connect(myEvents,SIGNAL(received(const QString &, const QByteArray &)),
this, SLOT(readProcessEvents(const QString &, const QByteArray &)));
To copy to clipboard, switch view to plain text mode
My one thread that sends the QCop events uses the QCopChannel::send() static function. Here is my sending routine.
int sendQCopEvent
( char *channel,
char *string,
const QByteArray &data
) {
{
// qDebug() << channel << string << __FUNCTION__ << endl;
return 0;
}
return -1;
}
int sendQCopEvent( char *channel, char *string, const QByteArray &data)
{
if(QCopChannel::isRegistered(channel))
{
QCopChannel::send(channel, string, data);
QCopChannel::flush();
// qDebug() << channel << string << __FUNCTION__ << endl;
return 0;
}
return -1;
}
To copy to clipboard, switch view to plain text mode
Bookmarks