sabeesh,
Before opening the file please check
QString fileName = m_ConfigFile.fileName();
and check fileName contains correct path, then check that file is exist on that location.
or
you can check
if(m_ConfigFile.exists ())
{
if (!m_ConfigFile.open(QIODevice::ReadOnly)){
qDebug()<<"Failed to open configuration file"<<m_ConfigFile.fileName();
}
}




Rajesh Kumar Singh
Reply With Quote
Bookmarks