Accessing ubuntu relative path
In Qt, i have no problem accessing file in absolute path but not relative path as in the code below.
This sould work for running your application in /opt. You can check the Path with something like
qDebug() << QDir(".").absoluteFilePath("TMP00000000.xml");
Maybe your just running in the wrong dir.