application
_application
¶
Custom QApplication.
Classes:
| Name | Description |
|---|---|
FXApplication |
Customized QApplication class. |
Classes¶
FXApplication
¶
Bases: QApplication
flowchart TD
fxgui.fxwidgets._application.FXApplication[FXApplication]
click fxgui.fxwidgets._application.FXApplication href "" "fxgui.fxwidgets._application.FXApplication"
Customized QApplication class.
On initialization, the application loads the previously saved theme from persistent storage. If no theme was saved, defaults to "dark".
Note
Qt allows a single QApplication per process. When one already exists
and is not an FXApplication (e.g. inside Houdini, Maya, or Nuke),
calling FXApplication() returns the host's application instance
untouched instead of raising RuntimeError. fxgui styling is NOT
applied to the host application in that case; style individual
widgets with fxstyle.load_stylesheet() instead.
Methods:
| Name | Description |
|---|---|
instance |
Return the existing instance or create a new one if it doesn't |