In C/C++ when i defined a string i can use scanf("%s",str_name) for user input, but if i want to defined a QString and use same function for getting user input , it fails
Qt Code:
  1. .....
  2. QString username;
  3. scanf("%s",username); //not work give a warning
To copy to clipboard, switch view to plain text mode 

thanks in advance