Question widget for LinearScaleQuestion, displaying radio buttons on a numeric scale.
More...
#include <QmitkLinearScaleQuestionWidget.h>
|
| void | InsertLayout (QLayout *layout) |
| | Insert a layout containing all GUI elements specific to the derived question widget type. More...
|
| |
Question widget for LinearScaleQuestion, displaying radio buttons on a numeric scale.
The widget renders a row of radio buttons between the range bounds with optional low-end and high-end labels. A "Clear selection" button appears after an option is selected (unless the question is required).
- See also
- mitk::Forms::LinearScaleQuestion, QmitkQuestionWidget
Definition at line 31 of file QmitkLinearScaleQuestionWidget.h.
◆ QmitkLinearScaleQuestionWidget()
| QmitkLinearScaleQuestionWidget::QmitkLinearScaleQuestionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct the widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ ~QmitkLinearScaleQuestionWidget()
| QmitkLinearScaleQuestionWidget::~QmitkLinearScaleQuestionWidget |
( |
| ) |
|
|
override |
◆ CreateAnother()
| QmitkQuestionWidget* QmitkLinearScaleQuestionWidget::CreateAnother |
( |
QWidget * |
parent = nullptr | ) |
const |
|
overridevirtual |
◆ GetQuestion()
Get the associated LinearScaleQuestion.
- Returns
- A pointer to the LinearScaleQuestion, or
nullptr if not set.
Implements QmitkQuestionWidget.
◆ Reset()
| void QmitkLinearScaleQuestionWidget::Reset |
( |
| ) |
|
|
overridevirtual |
◆ SetQuestion()
Initialize the widget for a LinearScaleQuestion.
- Parameters
-
| [in] | question | Must be a LinearScaleQuestion. The widget does not take ownership. |
- Exceptions
-
Implements QmitkQuestionWidget.
The documentation for this class was generated from the following file: