Results 1 to 5 of 5

Thread: Mutliple Threads

  1. #1
    Join Date
    Sep 2014
    Posts
    94
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Mutliple Threads

    how to run two threads independently at same time .. without using signals and slots give some examples.....

  2. #2
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Qt products
    Qt4 Qt5
    Platforms
    Windows
    Thanks
    92
    Thanked 16 Times in 16 Posts

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Mutliple Threads

    You call "start()" on two QThread objects.

    Cheers,
    _

  4. #4
    Join Date
    Sep 2014
    Posts
    94
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Mutliple Threads

    two threads are seperate cpp files i want to call another cpp file run in in main class cpp file how can i do ....

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Mutliple Threads

    Quote Originally Posted by mouni View Post
    two threads are seperate cpp files
    Doesn't really matter. Two thread require two thread objects and start() being called on both of them.

    Whether they are in the same file, two files, or spread across even more files, is really unimportant as long as the program compiles and links properly.

    Quote Originally Posted by mouni View Post
    i want to call another cpp file run in in main class cpp file how can i do ....
    What is a "cpp file run"?

    Cheers,
    _

Similar Threads

  1. display mutliple images and sync viewing
    By Algos in forum Qt Programming
    Replies: 3
    Last Post: 6th April 2015, 00:25
  2. Qt Threads vs Native Threads performance
    By StackOverflow in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2010, 13:14
  3. whatś the better in Threads
    By Tio in forum Newbie
    Replies: 15
    Last Post: 27th May 2010, 14:14
  4. Qt threads
    By ^Nisok^ in forum Newbie
    Replies: 12
    Last Post: 22nd April 2009, 15:35
  5. Once more: Threads in Qt4
    By high_flyer in forum Qt Programming
    Replies: 5
    Last Post: 9th August 2006, 19:35

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.