YDYD
10th July 2014, 05:42
Hi all,
Now i have a method as following
void Dialog::saveValue()
{
QString path="/home/pi/valueHSV/hsv.xml";
QFile valueHSV(path);
valueHSV.open(QIODevice::WriteOnly);
...
}
I would like to change the "path" in different situation,
I tried writing a switch case in different method and call to saveValue mathod, this won't work,
I tried to do a switch case inside saveValue method, this won't work too.
Please advise, Thanks
Now i have a method as following
void Dialog::saveValue()
{
QString path="/home/pi/valueHSV/hsv.xml";
QFile valueHSV(path);
valueHSV.open(QIODevice::WriteOnly);
...
}
I would like to change the "path" in different situation,
I tried writing a switch case in different method and call to saveValue mathod, this won't work,
I tried to do a switch case inside saveValue method, this won't work too.
Please advise, Thanks