Hello, I have this code:
Qt Code:
  1. // query string;
  2. QString queryString("SELECT * FROM merchandize WHERE PicPath="%1";");
  3. queryString.arg(strPicPath);
To copy to clipboard, switch view to plain text mode 

Once I try to compile it, I get following error:
Qt Code:
  1. CMerchandizeBrowser.cpp: In member function `QString CMerchandizeBrowser::getMerchandizeName(QString)':
  2. CMerchandizeBrowser.cpp:330: error: invalid operands of types `const char[41]' and `int' to binary `operator%'
To copy to clipboard, switch view to plain text mode 

I need those quotes because SQL syntax. Please help!