Hi all,

Now i have a method as following

Qt Code:
  1. void Dialog::saveValue()
  2. {
  3. QString path="/home/pi/valueHSV/hsv.xml";
  4. QFile valueHSV(path);
  5. valueHSV.open(QIODevice::WriteOnly);
  6. ...
  7. }
To copy to clipboard, switch view to plain text mode 

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