Results 1 to 3 of 3

Thread: Qt threading question..

  1. #1
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt threading question..

    I am new to multi-threading so bear with me..

    I have a class that goes out to our database and loads some data into the classes memory.. Currently there are like 5 different instances of this class.. Since its the same class but different instances of it, can all of the class run at the same time in different threads? The class is not a gui thread and it does use QString in it..

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt threading question..

    Hi,

    Yes we can. Sorry, Yes you can
    Òscar Llarch i Galán

  3. #3
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Qt threading question..

    Make sure you read the section about "Reentrancy and Thread-Safety" in "Thread Support in Qt", to be found "All overviews and HOWTOs" in the documentation.

Similar Threads

  1. Question about threading basics
    By donglebob in forum Qt Programming
    Replies: 8
    Last Post: 29th August 2008, 18:40
  2. Newbie threading question
    By deepayan in forum Qt Programming
    Replies: 17
    Last Post: 16th April 2007, 00:25
  3. QThread exit()/quit() question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2006, 14:38

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.