iblqt.tools.get_main_window
- iblqt.tools.get_main_window()[source]
Get the main QMainWindow instance of the running Qt application.
This function searches all top-level widgets in the current QApplication instance and returns the first one that is an instance of QMainWindow.
- Returns:
The first top-level widget that is a QMainWindow.
- Return type:
- Raises:
RuntimeError – If no QApplication is running or no QMainWindow is found.