pyqt_reactive.widgets.no_scroll_spinbox
No-scroll spinbox widgets for PyQt6.
Prevents accidental value changes from mouse wheel events.
Classes
|
Value ownership state for None-aware checkboxes. |
|
ComboBox that ignores wheel events to prevent accidental value changes. |
|
DoubleSpinBox that ignores wheel events to prevent accidental value changes. |
|
SpinBox that ignores wheel events to prevent accidental value changes. |
|
QCheckBox that supports None state for lazy dataclass contexts. |
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollSpinBox(parent=None)[source]
SpinBox that ignores wheel events to prevent accidental value changes.
Inherits from SpinBoxAdapter which already implements ValueGettable/ValueSettable ABCs.
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollDoubleSpinBox(parent=None)[source]
DoubleSpinBox that ignores wheel events to prevent accidental value changes.
Inherits from DoubleSpinBoxAdapter which already implements ValueGettable/ValueSettable ABCs.
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollComboBox(parent=None, placeholder='')[source]
ComboBox that ignores wheel events to prevent accidental value changes.
Inherits from ComboBoxAdapter which already implements ValueGettable/ValueSettable ABCs. Supports placeholder text when currentIndex == -1 (for None values).
- class pyqt_reactive.widgets.no_scroll_spinbox.CheckboxValueState(*values)[source]
Value ownership state for None-aware checkboxes.
- PLACEHOLDER = 'placeholder'
- CONCRETE = 'concrete'
- class pyqt_reactive.widgets.no_scroll_spinbox.NoneAwareCheckBox(parent=None)[source]
QCheckBox that supports None state for lazy dataclass contexts.
Shows inherited value as grayed placeholder when value is None. Clicking converts placeholder to explicit value.
- set_placeholder_preview(checked: bool) None[source]
Display an inherited checkbox value without making it concrete.
- convert_placeholder_to_concrete() None[source]
Keep the displayed value but mark it as a user-controlled value.