Question widget for ShortAnswerQuestion, displaying a single-line text input.
More...
#include <QmitkShortAnswerQuestionWidget.h>
|
| void | InsertLayout (QLayout *layout) |
| | Insert a layout containing all GUI elements specific to the derived question widget type. More...
|
| |
Question widget for ShortAnswerQuestion, displaying a single-line text input.
The widget uses a QLineEdit with a "Your answer" placeholder text.
- See also
- mitk::Forms::ShortAnswerQuestion, QmitkQuestionWidget
Definition at line 27 of file QmitkShortAnswerQuestionWidget.h.
◆ QmitkShortAnswerQuestionWidget()
| QmitkShortAnswerQuestionWidget::QmitkShortAnswerQuestionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct the widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ ~QmitkShortAnswerQuestionWidget()
| QmitkShortAnswerQuestionWidget::~QmitkShortAnswerQuestionWidget |
( |
| ) |
|
|
override |
◆ CreateAnother()
| QmitkQuestionWidget* QmitkShortAnswerQuestionWidget::CreateAnother |
( |
QWidget * |
parent = nullptr | ) |
const |
|
overridevirtual |
◆ GetQuestion()
Get the associated ShortAnswerQuestion.
- Returns
- A pointer to the ShortAnswerQuestion, or
nullptr if not set.
Implements QmitkQuestionWidget.
◆ Reset()
| void QmitkShortAnswerQuestionWidget::Reset |
( |
| ) |
|
|
overridevirtual |
◆ SetQuestion()
Initialize the widget for a ShortAnswerQuestion.
- Parameters
-
| [in] | question | Must be a ShortAnswerQuestion. The widget does not take ownership. |
- Exceptions
-
Implements QmitkQuestionWidget.
The documentation for this class was generated from the following file: