문제

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.

도움이 되었습니까?

해결책

QFileDialog offers the ability to select directories. Especially getExistingDirectory should cover your use case.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top