Important: Please read the Qt Code of Conduct -

[Solved]QObject::connect: Cannot queue arguments of type 'QQuickChangeSet'?

  • I try to make Listview with an Listmodel ( written in C++ ) and give it to QML via Contrext Propertie.

    The Listmodel should be modified by an AMQP-Eventqueue.

    As soon as the first event arrives I got the errormessage:

    @QObject::connect: Cannot queue arguments of type 'QQuickChangeSet'
    (Make sure 'QQuickChangeSet' is registered using qRegisterMetaType().)@

    I searched the Doc but I could not find a documentation to QQuickChangeSet

    has anybody allready the same problem or does anybody know what i'm doing wrong?

    The Model works fine as long i modify it by QML and not from C++.

  • No I tried a simple example ( AbstractItemModel Example from the Src-Distribution ).

    The Example works allso when I implement a invokeable method and call this from qml onMouseClick.

    But when i modify the example (Animal.h and Animal.cpp unchanged):

    int main(int argc, char ** argv)
    QGuiApplication app(argc, argv);

    AnimalModel model;
    model.addAnimal(Animal("Wolf", "Medium"));
    model.addAnimal(Animal("Polar bear", "Large"));
    model.addAnimal(Animal("Quoll", "Small"));
    QQuickView view;
    QQmlContext *ctxt = view.rootContext();
    ctxt->setContextProperty("myModel", &model);


    tThread tt;
    return app.exec();



    class tThread : public QThread
    explicit tThread(QObject *parent = 0);
    void addModel(AnimalModel * pmodel);

    void run();


    public slots:

    AnimalModel * _pModel;



    @tThread::tThread(QObject *parent) :

    void tThread::addModel(AnimalModel *pmodel)
    this->_pModel = pmodel;

    void tThread::run()
    while(true) {
    std::cout << "Thread: Model has " << _pModel->rowCount() << " items before append" << std::endl;
    std::cout << "Thread: Model has " << _pModel->rowCount() << " items after append" << std::endl;

    The Items inserted in the Model, but I got no update to the List in the qml.
    I only get the Message:

    @QObject::connect: Cannot queue arguments of type 'QQuickChangeSet'
    (Make sure 'QQuickChangeSet' is registered using qRegisterMetaType().)@

    What doing I wrong?????

  • I have now found a documentation about this.


    I have to use


    and don't insert it into the model, i have to work with signals and slots.

    now it works.

  • I also have a problem like you had
    When I send modelReset signal, insert rows for the first time, I get that error message, and then my qml list view ignores any changes

    can you please tell what you had to do to make your model work
    AFAIK QQuickChangeSet is QtQuick private class, did you explicitly register it ?

  • Hi DRemesov,
    To fix this prblem,you must register the custom type with qRegisterMetaType<MyType>("MyType").

    This artical may help you.

  • Right solution is to send an signal from worker thread to UI thread. See

Log in to reply