8.5.12. pymodaq_gui.qt_utils module

class pymodaq_gui.qt_utils.WhiteCheckboxStyle(*args, **kwargs)[source]

Bases: QProxyStyle

Methods

drawPrimitive

drawPrimitive(element, option, painter, widget=None)[source]
pymodaq_gui.qt_utils.apply_styling_rules(app)[source]
pymodaq_gui.qt_utils.center_widget_on_screen_and_show(widget)[source]
pymodaq_gui.qt_utils.decode_data(encoded_data)[source]

Decode QbyteArrayData generated when drop items in table/tree/list view :type encoded_data: QByteArray :param encoded_data: Encoded data of the mime data to be dropped :type encoded_data: QByteArray

Returns:

data – list of dict whose key is the QtRole in the Model, and the value a QVariant

Return type:

list

pymodaq_gui.qt_utils.mkQApp(name)[source]
pymodaq_gui.qt_utils.setLocale()[source]

defines the Locale to use to convert numbers to strings representation using language/country conventions Default is English and US

pymodaq_gui.qt_utils.start_qapplication(name='default_app')[source]
Return type:

QApplication