title: PySide/PyQt Overlay widget
body: <p>I am trying to achieve something like this in PySide: <a href="https://codepen.io/imprakash/pen/GgNMXO" rel="nofollow noreferrer">https://codepen.io/imprakash/pen/GgNMXO</a>
  What I want to do is create a child window frameless with a black overlay below.</p>
  
  <p>I didn't succeed to create a child window frameless and the overlay...</p>
  
  <p>This is a base code to replicate the HTML:</p>
  
  <pre><code>from PySide import QtCore, QtGui
  import sys
  
  class MainWindow(QtGui.QWidget):
      def __init__(self):
          QtGui.QWidget.__init__(self)
          self.resize(800, 500)
  
          self.button = QtGui.QPushButton("Click Me")
  
          self.setLayout(QtGui.QVBoxLayout())
          self.layout().addWidget(self.button)
  
          # Connections
          self.button.clicked.connect(self.displayOverlay)
  
  
      def displayOverlay(self):
          popup = QtGui.QDialog(self)
          popup.setWindowFlags(QtCore.Qt.FramelessWindowHint)
          popup.setLayout(QtGui.QHBoxLayout())
          popup.layout().addWidget(QtGui.QLabel("HI"))
          popup.show()
          print "clicked"
  
  if __name__ == "__main__":
      app = QtGui.QApplication(sys.argv)
      window = MainWindow()
      window.show()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>If you comment the line with the FramelessWindowHint, the window comes, else nothing happen...</p>
  
  <p>I really hope that someone could help me. Thank you for the time you spent to read my question.</p>