17 #include <QGraphicsDropShadowEffect> 20 : QObject(), m_Id(id), m_Position(top_Left), m_Layer(-1), m_Widget(nullptr), m_WidgetIsCustom(false)
62 auto effect =
new QGraphicsDropShadowEffect(widget);
63 effect->setOffset(QPointF(1.0, 1.0));
64 effect->setBlurRadius(0);
65 effect->setColor(Qt::black);
67 widget->setGraphicsEffect(effect);
virtual void SetPosition(DisplayPosition)
setter for the display-position
virtual unsigned int GetLayer()
getter for the layer
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
virtual DisplayPosition GetPosition()
getter for the display-position
DisplayPosition
enumeration of all possible display positions
virtual void SetLayer(unsigned int)
setter for the layer
virtual QWidget * GetWidget()
returns the internally handled QWidget
QWidget * m_Widget
internal QWidget representing the overlay
QmitkOverlay(const char *id)
Constructor with string ID.
unsigned int m_Layer
layer of the overlay
~QmitkOverlay() override
Default Destructor.
DisplayPosition m_Position
position of the overlay