Instead of taking the address of a temporary QVariant, make it a local variable and take its address.
In the second error, you are required to pass a reference to a QString. You are trying to pass the return value of a function, which is also a temporary.
Again, make a local variable, initialiize it with the result of the function and then pass the variable to the validate method.
Cheers,
_
Bookmarks