Important: Please read the Qt Code of Conduct -

Accessing ubuntu relative path

  • In Qt, i have no problem accessing file in absolute path but not relative path as in the code below.

    QXmlGet xmlGet;

  • 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.

Log in to reply