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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:22:42+00:00 2026-06-17T03:22:42+00:00

I have a PySide widget, with some connections. There are times when they are

  • 0

I have a PySide widget, with some connections. There are times when they are simply replaced by new widget instances based on input. How can I retain (getting the connections is the difficult part for me) all the connections of the previous instance, which were defined earlier(at the time of first creation)?

  • 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-17T03:22:43+00:00Added an answer on June 17, 2026 at 3:22 am

    Reading the documentation for QObject it is clear that its API does not provide what you want.

    The best you can do is retrieve the number of objects connected to a single signal of your QObject. Nothing more.

    If you want to retrieve the objects connected you can only add them to a sequence(list/dict/set) when you first instantiate the widget and when changing the widget iterate over them and reconnect the widgets to the new object.
    (You’ll have to save both the connected widgets and the signals used as connection)

    An other option can be to create a custom event/signal and when you replace the widget you emit this signal providing the new instance so that all the widgets can reconnect themselves.

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

Sidebar

Related Questions

I'm kinda new to PySide.I have a main window object which shows one widget
I'm building a PySide 1.1.0-based application, and have been looking for good examples to
I have a PySide application. I want to create a widget in which I
I have an application written with pyside where a user can load an image,
I'm writing a Qt based (QtCore) C++ library and would like to have access
Have a photography site that I want to prevent image copying from. How can
Have have this line of code in my form when I create a new
I'm using Pyside to create an interactive subclassed QGraphicsView - containing some subclassed QGraphicsItems.
I have installed Qt designer 4.8.2, Pyside, and Python 3.3. When I create a
I have a QComboBox so the user can a network name from from a

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.