Hi there, I want to compare two strings in an if statement condition as follows
Qt Code:
  1. if(meta->className() == "MyClass"){ //then do something}
To copy to clipboard, switch view to plain text mode 
but the problem I am having is that meta->className() returns a string of type const char* which is incompatible to QString. Because of this, the "if" condition does not even evaluate instead it gives a warning - see attached picturewarning.png