I am trying to show remote directories with QFileSystemModel
. But it shows me root of localhost. Here is my part of code:
mFileSystemModel = new QFileSystemModel(this);
mFileSystemModel->setReadOnly(true);
mFileSystemModel->setRootPath("st@192.168.4.3:/sql.db");
ui->treeView->setModel(mFileSystemModel);
ui->treeView->setRootIndex(mFileSystemModel->index("st@192.168.4.3:/sql.db"));
However in treeView I see root ("/")
of my localhost computer. Could you please help me how I can make ssh and show remote files?