C++ (Qt)GraphicsItem::setBorder(){ QGraphicsDropShadowEffect* border = new QGraphicsDropShadowEffect( scene() ); border->setColor( QColor( 0, 0, 0, 255 ) ); border->setOffset( QPointF( 0, 0 ) ); setGraphicsEffect( border ); border->setBlurRadius( 8 );}