Results 1 to 2 of 2

Thread: Is it possible to pass arguments to thread?

  1. #1
    Join Date
    Jun 2008
    Posts
    13
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Is it possible to pass arguments to thread?

    Hi, i wanted to ask if it is possible to pass arguments to Qthread. I've tried adding few params to threads run() but it didn't work. Can you tell me the right procedure?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is it possible to pass arguments to thread?

    Have you seen QThreadStorage?

  3. The following user says thank you to wysota for this useful post:

    zolookas (18th July 2008)

Similar Threads

  1. Replies: 5
    Last Post: 17th January 2008, 22:49
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13
  3. Replies: 10
    Last Post: 20th March 2007, 23:19
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 01:49
  5. Replies: 1
    Last Post: 14th June 2006, 09:12

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.