@Donald9307
Just to clear the confusion, do you have any model or in which way do you use your query?
Because there is no QSqlQuery::setQuery() (as in the title).
But good to hear that it worked for you :)
This is where all Qt 6 related questions belong