You are right! I misread the QSql code. It looks like the query became active upon a ```prepare()``` but it only does upon an ```exec()```. Your idea to cache it on the first call works.