code: def setData(self, data):
          
          try:
              bytestream = pickle.dumps(data)
              super(MimeData, self).setData(self._mimeType, bytestream)
          except TypeError:
              raise TypeError(self.tr("can not pickle added data"))
          except:
              raise
docs: Add some data.
          
          Args:
              data (object): Object to add as data. This object has to be pickable. 
                  Qt objects don't work!
          
          Raises:
              TypeError if data is not pickable