why qte2.3.1 can kill tty? how to solve it?
I have already cross compile qte2.3.1 for a ARM9 device.
now I write a little program:
Code:
#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");
}
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.
Re: why qte2.3.1 can kill tty? how to solve it?
A similar problem was fixed in my case by specifying a -no-mouse-pc option on the command line. I think Qt goes hunting for a mouse on psaux and all the serial ports and when it is done the baud rates are set to 1200, maybe some more settings changed.
On my Qtopia installation, I had to do:
export QWS_MOUSE_PROTO=MouseMan:/dev/null
since the -no-mouse-pc option did not work anymore.
I hope this solves your problem if you don't have a mouse or one specified.