Defines miscellaneous Qt-related helper classes and functions.
Bases: Shiboken.ObjectType, IPython.utils.traitlets.MetaHasTraits
A metaclass that inherits from the metaclasses of HasTraits and QObject.
Using this metaclass allows a class to inherit from both HasTraits and QObject. Using SuperQObject instead of QObject is highly recommended. See QtKernelManager for an example.
Permits the use of super() in class hierarchies that contain QObject.
Unlike QObject, SuperQObject does not accept a QObject parent. If it did, super could not be emulated properly (all other classes in the heierarchy would have to accept the parent argument–they don’t, of course, because they don’t inherit QObject.)
This class is primarily useful for attaching signals to existing non-Qt classes. See QtKernelManagerMixin for an example.
Return a font of the requested family, using fallback as alternative.
If a fallback is provided, it is used in case the requested family isn’t found. If no fallback is given, no alternative is chosen and Qt’s internal algorithms may automatically choose a fallback font.
family : str
fallback : str
font : QFont object