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