Quote Originally Posted by munna View Post
I am using 3.3.6 and the following code is not giving any error

Qt Code:
  1. std::string str = "hello";
  2. QString s(str);
To copy to clipboard, switch view to plain text mode 
This is really surprising, when I run this same code in Qt3.3.5, it works fine but when the same code is run in Qt3.3.4 it fails..Telling it cannot be typecasted.

How is that possible???Also when I just refered Qt3.3.4 assistant there is a member called
QString ( const std::string & str )
Then what is the problem? Is this a bug in Qt3.3.4?
I'm unable to understand..Please help me.

Cannot I make this run on Qt3.3.4??
Thankx