I’m currently trying to open a file in the same directory as my project
void configread(){
QFile config(QCoreApplication::applicationDirPath() + "/config.xml");
if(!config.open(QIODevice::ReadOnly)){
error("El archivo cargo incorrectamente", 01);
}
}
I been trying to open it in several ways but it just doesnt work.
New contributor
totito is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.