spacr.qt.widgets.toggle
=======================

.. py:module:: spacr.qt.widgets.toggle

.. autoapi-nested-parse::

   Toggle — QCheckBox styled as an iOS-style switch.





Module Contents
---------------

.. py:class:: Toggle(text: str = '', parent=None)

   Bases: :py:obj:`PySide6.QtWidgets.QCheckBox`


   A modern toggle switch. Emits `stateChanged` on user interaction.


   .. py:method:: sizeHint() -> QSize

      Return the default checkbox hint widened to fit the switch track.



   .. py:method:: paintEvent(event)

      Paint the switch track, knob, and (optional) trailing label.



   .. py:attribute:: knobPos


