Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkInvalidAnyWidget Class Reference

A QLabel-based adapter for options of unsupported types. More...

#include <QmitkFileReaderWriterOptionsWidget.h>

Inheritance diagram for QmitkInvalidAnyWidget:
Collaboration diagram for QmitkInvalidAnyWidget:

Public Member Functions

 QmitkInvalidAnyWidget (const std::string &name, const us::Any &any, QWidget *parent=nullptr)
 Constructs a read-only label for an unsupported option type. More...
 
us::Any GetAny () const override
 Returns the original us::Any value unchanged. 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 QLabel-based adapter for options of unsupported types.

Displays the string representation of the us::Any value as a read-only label. GetAny() returns the original value unchanged.

See also
QmitkAnyAdapter

Definition at line 259 of file QmitkFileReaderWriterOptionsWidget.h.

Constructor & Destructor Documentation

◆ QmitkInvalidAnyWidget()

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

Constructs a read-only label for an unsupported option type.

Parameters
[in]nameThe option name.
[in]anyThe option value.
[in]parentOptional parent widget.

Member Function Documentation

◆ GetAny()

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

Returns the original us::Any value unchanged.

Implements QmitkAnyAdapter.


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