@jsulm Thanks after reading documentation again, i was able to use QSettings
For anyone who needs some idea on using config files below code snippet might help you.
ui->pushButton->setVisible(false);
QSettings settings("../config/settings.ini",QSettings::IniFormat);
QStringList keys = settings.allKeys();
for (auto i=0;i<keys.size();i++)
{
configvalues.push_back(settings.value(keys[i]).toString());
}
Channel = configvalues[0].toInt() ;
auto my_Ip = configvalues[1];
auto hostIp = configvalues[2];
auto iterations = configvalues[3];
Port = configvalues[0].toInt();