Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 586731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:08:15+00:00 2026-05-13T15:08:15+00:00

As per examples seen online, I’ve created a Worker thread. I’m looking for a

  • 0

As per examples seen online, I’ve created a Worker thread. I’m looking for a thread to run my GUI while one thread executes my code. Worker thread is defined as:

class Worker(QThread):

    def __init__(self, parent = None):
        QThread.__init__(self, parent)
        self.exiting = False
        self.size = QSize(0, 0)

    def __del__(self):
        self.exiting = True
        self.wait()

pretty simple. Within my Window class, I have this line in the __init__ function: self.thread = Worker(). However, I never do anything with that self.thread afterwards. What am I supposed to be doing with it? This does not seem to be laid out as nicely as other threading mechanisms..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:08:15+00:00Added an answer on May 13, 2026 at 3:08 pm

    I imagine you’re looking at the example here? But that example does “do something with that thread afterwards” — it hooks up methods to respond to the signals the thread sends when it starts and finishes, in the class Worker it defines a run method that draws random stars , etc etc. Not sure what you think is wrong with how this is “laid out”?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Per a conversation with @Aaronaught on another thread, I've started converting my application to
I looked at the 2 examples on Stack, but can't get them to work.
I am working on a dice game for WP7 that involves multiple rolls per
I know that this is a popular topic, but I've yet to find an
Since 10.5, Spotlight on Mac OS X has this nice Dictionary integration you might
I am curently busy with bulding a synthax document in SPSS and have a
Is there an easy way to parse a simple math expression represented as a
I have a collection as follows Private _bankRates As Dictionary(Of RateSourceBank.Key, RateSourceBank) Where RateSourceBank.Key
I rarely come across a situation where a single table for multiple entity types
I am using System.Speech.Synthesis.SpeechSynthesizer to convert text to speech. And due to Microsoft's anemic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.