def url(self): """ Return the url path. :rtype: str """ return QtCore.QUrl(self.path())
def url(self): """ Return the url object for the given item. :rtype: QtCore.QUrl or None """ if not self._url: self._url = QtCore.QUrl(self.text(0)) return self._url
def url(self): """Used by the mime data when dragging/dropping the item.""" return QtCore.QUrl("file:///" + self.path())