Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkAnyVectorWidget Class Reference

A QComboBox-based adapter for vector-of-string options. More...

#include <QmitkFileReaderWriterOptionsWidget.h>

Inheritance diagram for QmitkAnyVectorWidget:
Collaboration diagram for QmitkAnyVectorWidget:

Public Member Functions

 QmitkAnyVectorWidget (const std::string &name, const us::Any &any, const QString &defaultValue, QWidget *parent=nullptr)
 Constructs a vector option widget with a combo box. More...
 
us::Any GetAny () const override
 Returns the currently selected item as a us::Any. More...
 
- Public Member Functions inherited from QmitkAnyAdapter
 QmitkAnyAdapter (const std::string &name)
 Constructs the adapter with the given option name. More...
 
virtual ~QmitkAnyAdapter ()
 
std::string GetName () const
 Returns the option name associated with this adapter. More...
 

Detailed Description

A QComboBox-based adapter for vector-of-string options.

See also
QmitkAnyAdapter

Definition at line 83 of file QmitkFileReaderWriterOptionsWidget.h.

Constructor & Destructor Documentation

◆ QmitkAnyVectorWidget()

QmitkAnyVectorWidget::QmitkAnyVectorWidget ( const std::string &  name,
const us::Any &  any,
const QString &  defaultValue,
QWidget *  parent = nullptr 
)

Constructs a vector option widget with a combo box.

Parameters
[in]nameThe option name.
[in]anyThe initial vector value.
[in]defaultValueThe default item text to select.
[in]parentOptional parent widget.

Member Function Documentation

◆ GetAny()

us::Any QmitkAnyVectorWidget::GetAny ( ) const
overridevirtual

Returns the currently selected item as a us::Any.

Implements QmitkAnyAdapter.


The documentation for this class was generated from the following file: