Results 1 to 20 of 26

Thread: Main thread - worker thread communication.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Main thread - worker thread communication.

    Are you sure this is correct?
    Qt Code:
    1. class WorkerThread(QtCore.QThread):
    2. def __init__(self, start, end):
    3. QtCore.QThread.__init__(self)
    4. self.start = start
    5. self.end = end
    To copy to clipboard, switch view to plain text mode 
    You have a variable called start and then you call start as a method. Try using a different name here. Maybe that's the problem.

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

    kikapu (22nd May 2007)

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.