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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:00:34+00:00 2026-06-14T11:00:34+00:00

I have a GUI created by Qt Designer. One element (screenshot) is used as

  • 0

I have a GUI created by Qt Designer. One element (“screenshot”) is used as a placeholder for another class definition. It’s Python code translation looks like so:

...

class Ui_endomess(object):

    def setupUi(self, endomess):
        ...
        self.screenshot = screenshot(self.centralwidget)
        ...        

from screenshot import screenshot

The “screenshot” class looks like so:

...
class screenshot(QGraphicsView):
... 
    def some_function(self):
        ...

Both are used by a main script with the following stucture:

...
from endomess_ui import Ui_endomess
...

class endomess(QMainWindow, Ui_endomess):

    def __init__(self):
        QMainWindow.__init__(self)
        self.setupUi(self)
    ...

def main(argv):
    app = QApplication(argv, True)
    wnd = endomess()
    wnd.show()
    sys.exit(app.exec_())

if __name__ == "__main__":
    main(sys.argv)

Of course, I can manipulate GUI object from within the “endomess” class like so:

self.calibrateButton.setEnabled(True)

What I want to do is manipulate GUI elements from a function within the “screenshot” class. I messed around with “global” calls, but I just don’t know how to do it. Is this possible?

Thanks in advance for all help!

  • 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-14T11:00:35+00:00Added an answer on June 14, 2026 at 11:00 am

    The qt-way would be to define a signal in your screenshot class and connect that to a slot in your endomess class which can then perform the modifications.

    From within the screenshot class you may also be able to access the object as self.parent().parent() (self.parent() should be the centralWidget, and that’s parent the endomess instance), but this may break if something in your hierarchy changes.

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

Sidebar

Related Questions

For my app I have created a GUI in Qt Designer and converted it
I'm teaching an introductory class to programming and GUI development using Python, and have
I have created a GUI for starting a Thread which does something very simple.
I have created a GUI that will setup the pivot table. For example, I
I have created my GUI using wxGlade and it looks fine in the display.
I have created a wizard using the GUI and so my pages are all
I have created a very simple GUI project in Qt as follows: main: #include
I am going to make a GUI that will have dynamically created sets of
I am using swing to create my GUI. J have a JFrame containing one
Although I've used Swing before I've never used a GUI designer and I'm having

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.