QFileDialog offers the ability to select directories. Especially getExistingDirectory should cover your use case.
getdir in c++, to choose a saving directory
-
06-03-2022 - |
Domanda
I have a qdialog
with a qlineedit
where the user can write his chosen path to save a file. I would like to implement a pushbutton
(Open) where if the user presses it, it will be something similar to uigetdir
in matlab
. it returns the path chosen in a string. Any suggestions in c++?
Thank you.
Soluzione
Altri suggerimenti
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow