Qt 6.11 is out! See what's new in the release
blog
kindly look into this error and help me
-

-
QSqlQuery::prepare() hast am return value - check it. Also don't store the db connection as member as explained in the documentation: https://doc.qt.io/qt-6/qsqldatabase.html#details