Question widget for CheckboxesQuestion, displaying checkboxes with an optional "Other" field.
More...
#include <QmitkCheckboxesQuestionWidget.h>
|
| void | InsertLayout (QLayout *layout) |
| | Insert a layout containing all GUI elements specific to the derived question widget type. More...
|
| |
Question widget for CheckboxesQuestion, displaying checkboxes with an optional "Other" field.
Each option is shown as a checkbox, allowing multiple selections. If the question has an "Other" option enabled, an additional checkbox with a text field is shown.
- See also
- mitk::Forms::CheckboxesQuestion, QmitkQuestionWidget
Definition at line 30 of file QmitkCheckboxesQuestionWidget.h.
◆ QmitkCheckboxesQuestionWidget()
| QmitkCheckboxesQuestionWidget::QmitkCheckboxesQuestionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct the widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ ~QmitkCheckboxesQuestionWidget()
| QmitkCheckboxesQuestionWidget::~QmitkCheckboxesQuestionWidget |
( |
| ) |
|
|
override |
◆ CreateAnother()
| QmitkQuestionWidget* QmitkCheckboxesQuestionWidget::CreateAnother |
( |
QWidget * |
parent = nullptr | ) |
const |
|
overridevirtual |
◆ GetQuestion()
Get the associated CheckboxesQuestion.
- Returns
- A pointer to the CheckboxesQuestion, or
nullptr if not set.
Implements QmitkQuestionWidget.
◆ Reset()
| void QmitkCheckboxesQuestionWidget::Reset |
( |
| ) |
|
|
overridevirtual |
Uncheck all checkboxes, clear the "Other" text, and reset all responses.
Implements QmitkQuestionWidget.
◆ SetQuestion()
Initialize the widget for a CheckboxesQuestion.
- Parameters
-
| [in] | question | Must be a CheckboxesQuestion. The widget does not take ownership. |
- Exceptions
-
Implements QmitkQuestionWidget.
The documentation for this class was generated from the following file: