Using the method / command:
OpenCreateDirectory() { QString Directory = QFileDialog::getExistingDirectory(this, tr("Choose Or Create Directory"), "/home", QFileDialog::DontResolveSymlinks); }
I can create a new directory or select an existing one. Is there a way to disable the ability to create a new directory? Also, is there a way to disable the ability to select an existing directory?
More precisely: when I use the method above, a pop-up window appears in which I can create a new directory or open an existing directory. What I want to do is to restrict the method so that I can simply create a new directory without being able to simply open an existing directory or in another case, restrict this method so that I can simply open an existing directory without being able to create a new directory .
source share