title: Adding box shadow to all sides in PyQt5
body: <p>So, I am having a QWidget and a dummy text. So, I want the label to be quite raised. So, I choose QGraphicsDropShadowEffect and added as an graphic effect. But, I can only see the box shadow on only two sides, bottom and right. I want to add shadow to other two sides as well</p>
  <p>Here is the code I have written so far:</p>
  <pre><code>import sys
  from PyQt5.QtWidgets import QApplication, QGraphicsDropShadowEffect, QWidget, QLabel
  from PyQt5.QtCore import QRect, Qt
  
  
  def window():
      app = QApplication(sys.argv)
  
      widget = QWidget()
  
      textLabel = QLabel(widget)
  
      textLabel.setText(&quot;Hello World!&quot;)
  
      textLabel.setStyleSheet(
          &quot;background-color: #4C566A; color: #88C0D0; font-size: 30px; font-weight: bold&quot;
      )
  
      textLabel.setAlignment(Qt.AlignmentFlag.AlignCenter | Qt.AlignmentFlag.AlignCenter)
  
      textLabel.setGeometry(QRect(100, 100, 500, 500))
  
      effect = QGraphicsDropShadowEffect()
  
      effect.setBlurRadius(15)
  
      textLabel.setGraphicsEffect(effect)
  
      textLabel.move(110, 85)
  
      widget.setGeometry(50, 50, 320, 200)
  
      widget.setStyleSheet(&quot;background-color: #2E3440&quot;)
  
      widget.setWindowTitle(&quot;PyQt5 Example&quot;)
  
      widget.show()
  
      sys.exit(app.exec_())
  
  
  if __name__ == &quot;__main__&quot;:
      window()
  
  </code></pre>