Re: Xqt: Application not responding
"Nicolas FR" <[email protected]>
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
Back to the problem, here is how the app is started (complete source code is
in archive, it's a very small app). If someone can have a look at the source
code, there are some overrides of Qt events, maybe this is the reason?
qtapplication.c
XqtApplication *g_ap;
XqtApplication::XqtApplication(int &argc, char **argv)
: QPEApplication(argc, argv)
{
}
extern "C"
void qtApInit(int argc, char *argv[])
{
qDebug("qtApInit");
if (!g_ap) {
g_ap = new XqtApplication(argc, argv);
g_screen = new qtScreen;
}
g_ap->setMainWidget(g_screen);
g_ap->processEvents();
}
extern "C"
void qtApProcessEvents(void)
{
g_ap->processEvents();
}
Initoutput.c
void
OsVendorInit(void)
{
OsVendorVErrorFProc = osVendorVError;
/* get argv[0] */
qtArgv[0] = argvGlobal[0];
#if 0
for (i = 0; i < qtArgc; i++) {
fprintf(stderr, "argv[%d] = '%s'\n", i, qtArgv[i]);
}
#endif
/* startup Qt application */
qtStartAp(qtArgc, qtArgv);
}
Qttimer.c
static int TimerHandler(OsTimerPtr *timer, CARD32 now, pointer arg)
{
qtApProcessEvents();
return 20; // return new time
}
void qtStartAp(int argc, char *argv[])
{
qtApInit(argc, argv);
TimerSet(NULL, 0, 20, TimerHandler, NULL);
}
_______________________________________________
http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex
Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
xqt-driver.tar.gz
(application/x-gzip, 39.5 KB) - not displayed