I\'m trying to open an xml file in the current location of the executable
QString path = QDir::currentPath(); path.append(\"/acc.xml\");
Try to use QCoreApplication::applicationDirPath() instead of QDir::currentPath().
For details see http://doc.qt.io/qt-5/qcoreapplication.html#applicationDirPath