KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
ComplexWidget Class Reference

QWidget subclass that adds logging support and auto-wired input validation. More...

#include <complexwidget.h>

+ Inheritance diagram for ComplexWidget:
+ Collaboration diagram for ComplexWidget:

Public Slots

virtual void onPreferencesChanged ()
 Called when application preferences change; override to react.
 

Public Member Functions

 ComplexWidget (QWidget *parent=nullptr)
 Construct with an optional parent.
 
 ComplexWidget (const QString &loggingCategory, QWidget *parent=nullptr)
 Construct with a logging category and optional parent.
 

Protected Slots

virtual void validate ()
 Override to implement form validation logic.
 

Protected Member Functions

void initializeBase ()
 Perform base-class initialization; call after building the UI.
 
void connectValidationSignals ()
 Connect all child input widget signals to validate().
 

Detailed Description

QWidget subclass that adds logging support and auto-wired input validation.

ComplexWidget automatically connects common input widget signals (QLineEdit, QComboBox, QRadioButton, QCheckBox, QSpinBox) to the validate() slot so that subclasses only need to override validate() to implement form validation. Call initializeBase() from the subclass constructor after building the UI.

Definition at line 17 of file complexwidget.h.

Constructor & Destructor Documentation

◆ ComplexWidget()

ComplexWidget::ComplexWidget ( const QString &  loggingCategory,
QWidget *  parent = nullptr 
)
explicit

Construct with a logging category and optional parent.

Parameters
loggingCategoryCategory name used for log output
parentOptional QWidget parent

Member Function Documentation

◆ validate

virtual void ComplexWidget::validate ( )
inlineprotectedvirtualslot

Override to implement form validation logic.

Definition at line 44 of file complexwidget.h.


The documentation for this class was generated from the following file: