Results 1 to 2 of 2

Thread: why qte2.3.1 can kill tty? how to solve it?

  1. #1

    Default 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:

    Qt Code:
    1. #include <stdio.h>
    2. #include <qapplication.h>
    3. #include <qpushbutton.h>
    4. #include <qlabel.h>
    5. #include <qlistbox.h>
    6. int main(int argc, char *argv[])
    7. {
    8. printf("before qapp\n");
    9. QApplication app(argc,argv);
    10. printf("before label\n");
    11. QLabel *btn = new QLabel("Hello Qt!",0);
    12. printf("before conn\n");
    13. printf("before setmain\n");
    14. app.setMainWidget(btn);
    15. printf("before show\n");
    16. btn->show();
    17. printf("before exec\n");
    18. return app.exec();
    19. printf("after exec\n");
    20. }
    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.
    Last edited by wysota; 29th July 2006 at 21:02. Reason: Added [code] tags

  2. #2
    Join Date
    Jul 2006
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default 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.

Similar Threads

  1. Questions about kill() and start() of QProcess
    By mp33919 in forum Qt Programming
    Replies: 5
    Last Post: 23rd June 2007, 13:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.