
Originally Posted by
poporacer
So what would be the implicit version?
Learn the difference between:
...
QString string = "Hello world!";
QString string("Hello world!");
QString string = QString("Hello world!");
QString string2(string);
...
To copy to clipboard, switch view to plain text mode
Which are initialisations, which are assignments, which are explicit, which are implicit, which use a copy constructor, ...?
This error tells you everything:
request for member 'arg' in (UPDATE rider set LName= \'%1'\ WHERE id= %2) which is of non class type const char [24].
You are requesting a member of an object which is not even a class.
You did:
const char *string = "UPDATE address set LName= '%1' WHERE id= %2".arg(...).arg(...);
const char *string = "UPDATE address set LName= '%1' WHERE id= %2".arg(...).arg(...);
To copy to clipboard, switch view to plain text mode
There's no QString there.
Bookmarks