Input Controls

Input Controls

Input controls collect user data and trigger actions.

Common Types

  • Push buttons.
  • Edit/input fields.
  • Checkboxes and radio buttons.
  • Sliders, spin boxes, and option selectors.

Class Diagram

QWidget
  ├─ QPushButton
  │   └─ UIGQPushButton + IUIGQWidgetBase
  │       └─ UIGQRibbonPushButton
  ├─ QCheckBox
  │   └─ UIGQCheckBox + IUIGQWidgetBase
  ├─ QRadioButton
  │   └─ UIGQRadioButton + IUIGQWidgetBase
  ├─ UIGQSwitch + IUIGQWidgetBase
  ├─ QLineEdit
  │   └─ UIGQLineEdit + IUIGQWidgetBase
  ├─ QTextEdit
  │   └─ UIGQTextEdit + IUIGQWidgetBase
  ├─ QComboBox
  │   └─ UIGQComboBox + IUIGQWidgetBase
  ├─ QSpinBox
  │   └─ UIGQSpinBox + IUIGQWidgetBase
  └─ QSlider
      └─ UIGQSlider + IUIGQWidgetBase

Implementation Notes

  • Keep text and placeholder content separate from visual style.
  • Use theme names for normal, hover, pressed, checked, disabled, and focus states.
  • Keep validation feedback visible and close to the input.
  • For icon buttons, prefer SVG icons with explicit color behavior.