spinetoolbox.widgets.custom_qcombobox

Class for a custom QComboBox.

author
  1. Savolainen (VTT)

date

16.10.2020

Module Contents

Classes

CustomQComboBox

A custom QComboBox for showing kernels in Settings->Tools.

class spinetoolbox.widgets.custom_qcombobox.CustomQComboBox[source]

Bases: PySide2.QtWidgets.QComboBox

A custom QComboBox for showing kernels in Settings->Tools.

mouseMoveEvent(self, e)[source]

Catch mouseMoveEvent and accept it because the comboBox popup (QListView) has mouse tracking on as default. This makes sure the comboBox popup appears in correct position and clicking on the combobox repeatedly does not move the Settings window.