amaze.misc.utils¶
Various utility functions from handling the Qt Application
Functions
Sanity check to ensure that a QtApplication exists |
|
Tests whether the offscreen has been requested either through the environmental variable or through the Qt application itself |
|
|
Returns the currently running Qt application or creates a new one. |
|
Whether to request offscreen rendering from Qt (for headless environments) |
Exceptions
- amaze.misc.utils.qt_application(allow_create=True, start_offscreen=False)[source]¶
Returns the currently running Qt application or creates a new one.
- Raises:
RuntimeError if allow_create is False and no application exists.
- amaze.misc.utils.has_qt_application()[source]¶
Sanity check to ensure that a QtApplication exists
- Raises:
NoQtApplicationException if no Qt application exists