Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStringPropertyView.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef QmitkStringPropertyView_h
13 #define QmitkStringPropertyView_h
14 
16 #include <QLabel>
17 #include <mitkPropertyObserver.h>
18 #include <mitkStringProperty.h>
19 
29 {
30  Q_OBJECT
31 
32 public:
38  QmitkStringPropertyView(const mitk::StringProperty *property, QWidget *parent);
39 
42 
43 protected:
44  void PropertyChanged() override;
45  void PropertyRemoved() override;
46 
48 };
49 
50 #endif
#define MITKQTWIDGETSEXT_EXPORT
Read-only QLabel that displays a mitk::StringProperty value as text.
void PropertyChanged() override
Called when the observed property value has changed.
void PropertyRemoved() override
Called when the observed property is about to be deleted.
const mitk::StringProperty * m_StringProperty
QmitkStringPropertyView(const mitk::StringProperty *property, QWidget *parent)
Construct a view for the given string property.
~QmitkStringPropertyView() override
Destructor.
Read-only observer for a mitk::BaseProperty.
Property for storing string values.