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

  • SEARCH
  • Home
  • 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 9156737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:50:31+00:00 2026-06-17T12:50:31+00:00

I am writing an app in pyqt4 that has to read in and parse

  • 0

I am writing an app in pyqt4 that has to read in and parse a lot of xml files. Done single-threaded it takes a while to do all that parsing and make the thousands of python objects corresponding to that incoming xml. I have profiled the code and as far as I can tell it’s compute, not I/O, bound.

I would like to convert the app to a multi-core model to spread the load around, using a worker-farm model (?Process.Pool in python).

However, I would also like to be able to Signal progress from the workers to update the gui.

It seems to me from what I have read so far that QThread is not multicore capable (because it round-robins on one core) but I need QThread to do Signal, and so essentially I can’t do that.

I might be able to arrange not to need to Signal from a worker, only from the farmer, which might then mean I can carry on, but then I wonder: can I return a list of python objects from one Process to another?

  • 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-06-17T12:50:32+00:00Added an answer on June 17, 2026 at 12:50 pm
    • Spawn a QThread.
    • The QThread can farm out tasks to the multiprocessing Pool. You might
      use pool.apply_async() which has a callback parameter.
    • The callback parameter allows you to specify a function which is
      called when the target function completes.
    • The callback runs in the QThread, and is sent the return value of the
      target function as its one and only argument.
    • Each time the callback function runs, you can update the GUI to
      indicate the progress.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an app with a database that has a slightly unusual schema.
Writing an app that will include the ability to decompress zip and rar files.
Im writing an app that has a navigation controller as it's main menu system
I want Intellisense support when writing App.config sections or XML configuration files for components
I am writing an app that ultimately wants to send some XML via email.
While writing an app, I encountered some odd behavior that I wasn't expecting and
Well, I'm writing a small PyQt4 app, it's just a single Yes/No dialog which
I'm writing an app that takes in HTML code of a page and extracts
I'm writing a small app (learning Python and PyQt) that has an About box.
im writing c# app in VS2008 that will use some reports. My question: how

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.