hi friends,

Qt Code:
  1. const char *str;
  2. QString path;
  3. path = lineEdit->text();
  4. [B]str = (const char *)path.latin1();[/B]
  5. // [B]str = (const char *)path.local8Bit());[/B]
To copy to clipboard, switch view to plain text mode 

but compilation gives error: ‘class QString’ has no member named ‘latin1’
or local8Bit() why its showing like this....
please help ..