I've got the following code which doesn't compile because "invalid conversion from ‘char*’ to ‘char’".

Qt Code:
  1. char HelloWorld::ConvertIntToChar(int iIntToConvert)
  2. {
  3. char cText[20];
  4. sprintf("%d", cText);
  5. return cText;
  6. }
To copy to clipboard, switch view to plain text mode 

Any suggestions?