Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkBasePropertyView.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 QmitkBasePropertyView_h
13 #define QmitkBasePropertyView_h
14 
16 #include <QLabel>
17 #include <mitkProperties.h>
18 #include <mitkPropertyObserver.h>
19 
30 {
31  Q_OBJECT
32 
33 public:
39  QmitkBasePropertyView(const mitk::BaseProperty *property, QWidget *parent);
40 
43 
44 protected:
46  void PropertyChanged() override;
47 
49  void PropertyRemoved() override;
50 
51 private:
52 };
53 
54 #endif
#define MITKQTWIDGETSEXT_EXPORT
Read-only QLabel that displays any mitk::BaseProperty value as text.
~QmitkBasePropertyView() override
Destructor.
QmitkBasePropertyView(const mitk::BaseProperty *property, QWidget *parent)
Construct the view for the given property.
void PropertyChanged() override
Called when the observed property value changes. Updates the label text.
void PropertyRemoved() override
Called when the observed property is removed. Sets text to "n/a".
Abstract base class for properties.
Read-only observer for a mitk::BaseProperty.
Declares commonly used GenericProperty specializations for MITK.