Your class expects a QString and is being given a const char*. The compiler will try to find a QString constructor accepting a const char*, a conversion constructor, and construct a QString on your behalf. If there is no such constructor then your code generates an error like the one you describe. If your program is being built with QT_NO_CAST_FROM_ASCII defined then QString interfaces accepting C string literals are disabled and you need to explicitly do something like this:
Qt Code:
//orTo copy to clipboard, switch view to plain text mode
Bookmarks