Question widget for DropdownQuestion, displaying options in a QComboBox.
More...
#include <QmitkDropdownQuestionWidget.h>
|
| void | InsertLayout (QLayout *layout) |
| | Insert a layout containing all GUI elements specific to the derived question widget type. More...
|
| |
Question widget for DropdownQuestion, displaying options in a QComboBox.
The combo box shows a "Choose" placeholder item followed by a separator and the actual options. Only a single option may be selected at a time.
- See also
- mitk::Forms::DropdownQuestion, QmitkQuestionWidget
Definition at line 28 of file QmitkDropdownQuestionWidget.h.
◆ QmitkDropdownQuestionWidget()
| QmitkDropdownQuestionWidget::QmitkDropdownQuestionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct the widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ ~QmitkDropdownQuestionWidget()
| QmitkDropdownQuestionWidget::~QmitkDropdownQuestionWidget |
( |
| ) |
|
|
override |
◆ CreateAnother()
| QmitkQuestionWidget* QmitkDropdownQuestionWidget::CreateAnother |
( |
QWidget * |
parent = nullptr | ) |
const |
|
overridevirtual |
◆ GetQuestion()
Get the associated DropdownQuestion.
- Returns
- A pointer to the DropdownQuestion, or
nullptr if not set.
Implements QmitkQuestionWidget.
◆ Reset()
| void QmitkDropdownQuestionWidget::Reset |
( |
| ) |
|
|
overridevirtual |
◆ SetQuestion()
Initialize the widget for a DropdownQuestion.
- Parameters
-
| [in] | question | Must be a DropdownQuestion. The widget does not take ownership. |
- Exceptions
-
Implements QmitkQuestionWidget.
The documentation for this class was generated from the following file: