Results 1 to 7 of 7

Thread: Correct usage of QThread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Re: Correct usage of QThread

    How does your code call InventoryWorker:: DoInventory()? To put it simply what I need is:

    every time ui->start emits clicked() then run InventoryWorker:: DoInventory() in a different thread

  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanked 53 Times in 51 Posts

    Default Re: Correct usage of QThread

    This code I gave you is not complete. I wrote it just to show you a pattern. I don't know what you code do I don't need to.

  3. #3
    Join Date
    Nov 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Re: Correct usage of QThread

    Ok, after reading it twice I got it. Tank you all, you've been really helpful

Similar Threads

  1. Is this sentence correct?
    By SWEngineer in forum Newbie
    Replies: 6
    Last Post: 21st June 2011, 01:56
  2. Replies: 1
    Last Post: 9th May 2011, 13:16
  3. QThread 100% cpu usage on linux only
    By essial in forum Qt Programming
    Replies: 6
    Last Post: 26th April 2010, 15:33
  4. QThread usage and exec()
    By smahnken in forum Qt Programming
    Replies: 10
    Last Post: 24th August 2008, 18:13
  5. CPU Time & Memory Usage in QThread or QProcess
    By Davidaino in forum Qt Programming
    Replies: 0
    Last Post: 11th July 2008, 19:15

Tags for this Thread

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.