Results 1 to 5 of 5

Thread: Thread integration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    May 2011
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Thread integration

    here is the definition of my thread:
    Qt Code:
    1. class MyThread : public QThread
    2. {
    3. public:
    4. void run();
    5. };
    6.  
    7. void MyThread::run()
    8. {
    9. int argc;
    10. char *argv[0];
    11.  
    12. QApplication a(argc, argv);
    13. MainWindow w;
    14.  
    15. w.show();
    16. a.exec();
    17. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by Lykurg; 15th May 2011 at 14:28. Reason: changed [qtclass] to [code]

Similar Threads

  1. Replies: 5
    Last Post: 22nd February 2011, 21:21
  2. Replies: 7
    Last Post: 27th January 2011, 08:48
  3. Replies: 9
    Last Post: 28th November 2009, 20:31
  4. Replies: 16
    Last Post: 7th October 2009, 08:17
  5. Eclipse Integration sans Integration
    By ChrisW67 in forum Qt Tools
    Replies: 3
    Last Post: 17th March 2009, 07:29

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.