Results 1 to 8 of 8

Thread: MultiThreading in Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    Zürich, Switzerland
    Posts
    23
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MultiThreading in Qt

    You could use the Posix threads library directly which is available for Unix, Linux and Win systems. Have a look at this tutorial:

    http://www.llnl.gov/computing/tutorials/pthreads/

    But if ever possible you should derive from QThread and create an instance for every thread you need - for sure makes your life much easier.
    Ernst

  2. #2
    Join Date
    Aug 2006
    Location
    banglore
    Posts
    21
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: MultiThreading in Qt

    Thanks for all your suggestions..

    Actually I have a requirement to do this with out creating instances.. But i think that is only the easier way...

    Thanks,
    Mani

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MultiThreading in Qt

    Quote Originally Posted by manivannan_1984 View Post
    Actually I have a requirement to do this with out creating instances..
    Excuse me, but what do you intend to use instead? If you want to do it the object-oriented way, you have to use instances (i.e. objects).

Similar Threads

  1. MultiThreading n Qhttp
    By Shambhavi in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2006, 13:36

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.