QDir mkdir and switch to newly made directory?
Solved
General and Desktop
-
Good day fellow QT'ers, wondering if anyone has run into this issue yet? I have the following code:
ui->comboBox->addItem("Item01"); QDir dir("C:/Users/Calicoder/QTdocs"); dir.mkdir(ui->comboBox->currentText()); dir.setCurrent(ui->comboBox->currentText()); <------ doesn't switch to the newly created folder
That creates the C:/Users/Calicoder/QTdocs/Item01 folder perfectly, how would I go to switching into that directory now as the last line doesn't work? Checking the dir.path() always returns C:/Users/Calicoder/QTdocs
Appreciate the help, thanks!