Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkCustomWidgetOverlay.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 
13 #ifndef QmitkCustomWidgetOverlay_h
14 #define QmitkCustomWidgetOverlay_h
15 
16 // MITK
17 #include <QmitkOverlay.h>
18 
19 #include <MitkQtOverlaysExports.h>
20 
39 {
40 public:
45  QmitkCustomWidgetOverlay(const char *id);
46 
49 
58  void SetWidget(QWidget *widget);
59 
64  QSize GetNeededSize() override;
65 };
66 
67 #endif
#define MITKQTOVERLAYS_EXPORT
Overlay that wraps an externally provided custom QWidget.
~QmitkCustomWidgetOverlay() override
Destructor.
void SetWidget(QWidget *widget)
Sets the custom widget to be managed as an overlay.
QSize GetNeededSize() override
Returns the current size of the custom widget.
QmitkCustomWidgetOverlay(const char *id)
Constructor.
Abstract base class for all Qt-based overlay widgets in MITK.
Definition: QmitkOverlay.h:55