I'm doing a college project where we need to set up a dropbox-like service in a local network. I can do it easily in a terminal, but for some extra points I'm trying to set up an QtPy ui for it.
One of my widgets it's a QTreeView with a QFileSystemModel where I'd like to visualize the files and folders the user has saved on his "dropbox". The thing is, that the information and the folder itself are in another computer. I've tried sending the widget from one pc to another but you can't pickle widgets. I've also tried sending the 'self.model' and add it later but it didn't work. Any solutions? Here's the Widget Code:
class MyFolder(*form):
def __init__(self):
super().__init__()
self.client = ""
self.setupUi(self)
self.model = QtGui.QFileSystemModel()
self.model.setRootPath("./Archivos/MyFolder")
self.myFolder.setModel(self.model)
self.myFolder.setRootIndex(self.model.index("./Archivos/MyFolder"))
self.addButton.clicked.connect(self.addDialog)