I have already cross compile qte2.3.1 for a ARM9 device.
now I write a little program:
#include <stdio.h>
#include <qapplication.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlistbox.h>
int main(int argc, char *argv[])
{
printf("before qapp\n");
printf("before label\n");
printf("before conn\n");
printf("before setmain\n");
app.setMainWidget(btn);
printf("before show\n");
btn->show();
printf("before exec\n");
return app.exec();
printf("after exec\n");
}
#include <stdio.h>
#include <qapplication.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlistbox.h>
int main(int argc, char *argv[])
{
printf("before qapp\n");
QApplication app(argc,argv);
printf("before label\n");
QLabel *btn = new QLabel("Hello Qt!",0);
printf("before conn\n");
printf("before setmain\n");
app.setMainWidget(btn);
printf("before show\n");
btn->show();
printf("before exec\n");
return app.exec();
printf("after exec\n");
}
To copy to clipboard, switch view to plain text mode
I use minicom connect to the ARM9 device, then I typing: myApp -qws ENTER
the qt window can be display(through a TV),but only one line "before qapp" display on the minicom. and I can't type character into minicom anymore. Ctrl+C also can't work.
what's the reason? who can help me.
Bookmarks