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 8809343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:51:04+00:00 2026-06-14T02:51:04+00:00

I am using PySide (Python Qt binding). I have a worker thread of class

  • 0

I am using PySide (Python Qt binding).

I have a worker thread of class QThread that updates the main GUI thread (updates the QTableWidget) through signal/slot mechanism.

In my worker thread, I have the following:

self.emit(SIGNAL("alterTable(object"), params)

In my GUI thread I have this:

self.connect(self.worker, SIGNAL("alterTable(object)"), self.updateMainTable, Qt.AutoConnection)

Since there are several similar worker threads running all connecting to the same slot (the self.updateMainTable), I should use the AutoConnection (and consequently the QueuedConnection). Using the Qt.DirectConnection works, but it is not safe (or so I have been told).

But when I try to use the AutoConnection, I get the following error:

QObject::connect: Cannot queue arguments of type 'object'
(Make sure 'object' is registered using qRegisterMetaType().)

I have Googled for eons trying to figure out a way how to use the qRegisterMetaType() in PySide, to no avail. All the resources I found online point to a C++ syntax/documentation.

If it makes any difference, the object in question is a dict most of the time.

  • 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-14T02:51:06+00:00Added an answer on June 14, 2026 at 2:51 am

    I guess I have found an answer myself, well not exactly an answer, but a workable solution.

    I switched all the Signals to the new-style syntax. In case anyone is wondering, I did that by defining a custom signal in my worker class. So my code looks something like this

    class Worker(QThread):
    
        alterTable = Signal(dict)
    
        def __init__(self, parent=None):
            ....
            self.alterTable.emit(parameters)
    
    
    class GUI(QMainWindow):
    
        def __init__(self, parent=None):
            WorkerModule.Worker().alterTable.connect(self.myMethod)
    

    For some reason the Signal has to be inside the QThread class; otherwise, Qt complains about “Signal has no attribute connect” error, which is very weird.

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

Sidebar

Related Questions

I'm using Python and PySide (the PyQt alternative). I have an application that runs
I have been trying to display a list that I build using PySide. It
So basically I want to create a GUI app using PySide and the Qt
I have started using Python for web development recently, it's kinda cool; I have
Just started learning PySide and is having problem with QTimer I have this #!/usr/bin/python
I've noticed that QML can receive a signal emitted from Python by using the
I am developing a desktop application using Qt (Pyside) and Python. Is there any
I'm using Python 2.7 with PySide and want to use this to retrieve pen
I've made a QtGui.LineEdit() widget in a python script using pySide Qt bindings and
Background I'm working on a graphical ssh client in Python. I'm using PySide for

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.