Ejemplo n.º 1
0
    def setEditorData(self, editor: QWidget, index: PySide2.QtCore.QModelIndex):
        editor: PathBrowseWidget
        path = index.data(Qt.EditRole)
        editor.set_path(path)

        if not self._path_been_set:
            self._path_been_set = True
            if not path:
                editor.browse()