title: Python PyQt5: QListWidget doesn't accept drops
body: <p>I have tried to create a simple QListWidget that accepts text dropped into it. Can't make it to work. The drop-event doesn't even get triggered, the drag event is on the other hand.
  Can anybody point me in the right direction? What did I do wrong?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>import sys
  from PyQt5.QtWidgets import QApplication, QWidget, QPushButton,  QLineEdit, QLabel, QListWidget
  from PyQt5.QtGui import QIcon
  from PyQt5.QtCore import pyqtSlot
  
  class App(QWidget):
  
      def __init__(self):
          super().__init__()
          self.title = 'PyQt5 drag and drop'
          self.left = 500
          self.top = 400
          self.width = 400
          self.height = 250
          self.initUI()
  
      def initUI(self):
          self.setWindowTitle(self.title)
          self.setGeometry(self.left, self.top, self.width, self.height)
  
          editBox = QLineEdit('Drag this', self)
          editBox.setDragEnabled(True)
          editBox.move(10, 10)
          editBox.resize(100,32)
  
          listwidget = CustomLabel(self)
          listwidget.move(130,15)
  
          self.show()
  
  
  class CustomLabel(QListWidget):
  
      def __init__(self, parent):
          super().__init__(parent)
          self.setAcceptDrops(True)
  
      def dragEnterEvent(self, e):
          if e.mimeData().hasFormat('text/plain'):
              print("dragged")
              e.accept()
          else:
              e.ignore()
  
  
      def dropEvent(self, e):
          print("dropped")
  
          self.addItem(event.mimeData().text())
  
  if __name__ == '__main__':
      app = QApplication(sys.argv)
      ex = App()
      sys.exit(app.exec_())
  </code></pre>