Quote Originally Posted by jonthom View Post
Could also do this:

Qt Code:
  1. #include <string>
  2.  
  3. char * c_string = QString().toStdString().c_str();
To copy to clipboard, switch view to plain text mode 
edit*

Qt Code:
  1. const char * c_string = QString().toStdString().c_str();
To copy to clipboard, switch view to plain text mode