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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:36:58+00:00 2026-06-17T04:36:58+00:00

I have done a GUI interface with Qt designer and compiled the .ui file

  • 0

I have done a GUI interface with Qt designer and compiled the .ui file into a .py file. In main window I have this class:

class Projektdlg(QMainWindow, ui_Projekt.Ui_MainWindow):

    def __init__(self, parent=None):
        super(Projektdlg, self).__init__(parent)
        self.setupUi(self)
        self.connect(self.actionCalibration, SIGNAL("triggered()"), self.CalibrationSettings)

I want to open the QDialog from the generated ui_calibration file when clicking on calibration from the tool bar. How to do that?

def CalibrationSettings(self):

    Dialog = ui_calibration.Ui_DialogCalibration()

All modules are imported

  • 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-17T04:37:00+00:00Added an answer on June 17, 2026 at 4:37 am

    Try something like this:

    class myDialog(QtGui.QDialog, Ui_DialogCalibration):
        def __init__(self, parent=None):
            super(myDialog, self).__init__(parent)
    
            self.setupUi(self)
    

    Then in your class:

    Dialog = myDialog(self)
    

    Then you can call Dialog.show() or Dialog.exec_()

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

Sidebar

Related Questions

Okay this is probably a rookie question, but I have never done GUI programming
I have done a few months of development with Qt (built GUI programmatically only)
I have done some looking and I found this: http://www.codeproject.com/Articles/14439/The-ScrollableListBox-Custom-Control-for-ASP-NET-2 but to me it
I have done some commits and pushed them into my repository. Then I did
I have a class that is bound to GUI elements as follows: <TextBox Style={StaticResource
I have solution split into 2 projects: The independent project contains interface ExampleInf and
I have shellcmdflag=-ic in my .vimrc to make the shell interactive (This was done
The last GUI programming I have done was with Visual Basic, which included objects
Have done quite a bit of searching for a guide (of any substance) for
Have done some research and found some stuff that may be helpful. I would

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.