Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkAnyIntWidget Class Reference

A QSpinBox-based adapter for signed integer options. More...

#include <QmitkFileReaderWriterOptionsWidget.h>

Inheritance diagram for QmitkAnyIntWidget:
Collaboration diagram for QmitkAnyIntWidget:

Public Member Functions

 QmitkAnyIntWidget (const std::string &name, const us::Any &any, QWidget *parent=nullptr)
 Constructs a signed integer option widget. More...
 
us::Any GetAny () const override
 Returns the current value as a us::Any wrapping an int. 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 QSpinBox-based adapter for signed integer options.

See also
QmitkAnyAdapter

Definition at line 171 of file QmitkFileReaderWriterOptionsWidget.h.

Constructor & Destructor Documentation

◆ QmitkAnyIntWidget()

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

Constructs a signed integer option widget.

Parameters
[in]nameThe option name.
[in]anyThe initial value (must be convertible to int).
[in]parentOptional parent widget.

Member Function Documentation

◆ GetAny()

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

Returns the current value as a us::Any wrapping an int.

Implements QmitkAnyAdapter.


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