Unsolved cant passing 'QList<QSqlRecord>&'
I found the error at my debug log
QObject::connect: Cannot queue arguments of type 'QList<QSqlRecord>&' (Make sure 'QList<QSqlRecord>&' is registered using qRegisterMetaType().)
how can i pass the QList<QSqlRecord>& with signal slot ?
JonB last edited by JonB
You cannot have
QObjects are not copyable. I'm guessing you might mean
Furthermore, the fact that you only find this in some runtime log rather than at compile-time indicates to me that you are using the old-style
SLOT()macros. You would get this right at compile-time if you changed over to https://wiki.qt.io/New_Signal_Slot_Syntax, which is highly recommended.
JonB last edited by
is it like this ?
void executeOneTime2(const QString &queryId, const QString &sql,const QList<QSqlRecord> recs, int &last_insert_id, bool &returnUD);