Main Application Window

Most of the features are obtained simply by making your main window a subclass of UqtWin.MainWindow instead of PyQt5.QtWidgets.QMainWindow.

For example, note these three steps in the source of simple_uqtie.py in the example/ subdirectory of the repo”:

  1. Import the UqtWin module:

    from   uqtie import UqtWin
    
  2. Use UqtWin.MainWindow as the base class of the main window:

    class TestAppMainWindow(UqtWin.MainWindow):
        def __init__(self, parsedArgs, **kwargs ):
            super(TestAppMainWindow, self).__init__(parsedArgs, **kwargs)
    
  3. Instantiate the subclass:

    # can add optional title='<OptionalTitle>' if it is different from your app name
    mainw = TestAppMainWindow(parsedArgs, app=app, organizationName='Craton', appName='UqtTest')