How can i ask one user to create a folder through one dialog box in qt .
So that whatever the name the user has given in the dialog box ( in a specific location,
for eg. c:/user/…) the folder will be created in that location and if the folder is
alreday present with the specific name in that location then replacement shall be done .
A usual GUI approach to this would be to use
QFileDialog::getExistingDirectory(QWidget* parent, const QString& caption, const QString& dir, Options options)to present a directory selection dialog to the user. Have the output of the selection displayed a inQLineEdit, so if the user wants to create a new subdirectory they can append new folder names.Then as the comments to your question state, use
QDirto determine if the directory is existing or not – and make it if it isn’t.