c++ - Qt - Using user text input to direct to folder -
c++ - Qt - Using user text input to direct to folder -
is there way include user text input in file address? example:
the user inputs first , lastly name, , saved qstrings firstname
, lastname
. want access folder named firstname_lastname (ex:
john_doe`), saved in location one:
c://users/user/documents/patients/firstname_lastname
how go using strings direct folder?
use arg()
qdebug() << qstring("c:/users/user/documents/patients/%1_%2") .arg(ui->lineedit->text()) //firstname .arg(ui->lineedit_2->text()); //lastname
i don't know exatly want, can utilize this open directory. or can utilize qdir
c++ qt file input path
Comments
Post a Comment