Hi there, I want to compare two strings in an if statement condition as followsbut 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.pngQt Code:
if(meta->className() == "MyClass"){ //then do something}To copy to clipboard, switch view to plain text mode
Bookmarks