Note that the error is a little misleading. Although it complains about character strings, the real problem is the integer you are passing somewhere in the middle.
As for the + operator, it is good to always wrap all C strings into QLatin1String. It's a bit of more work but it has some benefits for more complex applications. There is not operator+ defined for it though, so it's likely you'd get some different error then too but at least the compiler wouldn't try to add an integer to your string.
Bookmarks