Results 1 to 2 of 2

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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

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
  •  
Qt is a trademark of The Qt Company.