I upload a file from a location, then the next upload has to point the last uploaded location.
How can I accomplish thus using QSettings?
I upload a file from a location, then the next upload has to point
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Before using
QSettings, I would suggest, in yourmain()to set a few informations about your application and your company, informations thatQSettingswill be using :Then, when selecting a file with
QFile::getOpenFileName()(for instance), you can read from a key ofQSettingthe last directory. Then, if the selected file is valid, you can store/update the content of the key :