I incorporated the following example's methods into my code!
#include <QtCore>
#include <QtGui>
public:
model = m;
}
protected:
}
private:
};
int main(int argc, char **argv){
model.setColumnCount(1);
lv.setModel(&model);
lv.show();
Inserter ins(&model);
ins.startTimer(1000);
return app.exec();
}
#include <QtCore>
#include <QtGui>
class Inserter : public QObject {
public:
Inserter(QStandardItemModel *m) : QObject() {
model = m;
}
protected:
void timerEvent(QTimerEvent *e){
QString str = QDateTime::currentDateTime().toString();
model->appendRow(new QStandardItem(str));
}
private:
QStandardItemModel *model;
};
int main(int argc, char **argv){
QApplication app(argc, argv);
QStandardItemModel model;
model.setColumnCount(1);
QListView lv;
lv.setModel(&model);
lv.show();
Inserter ins(&model);
ins.startTimer(1000);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
The entries show up OK whilst in the vicinity of the starting code!
However off in a thread I am doing the same code:
QString qstr("landon 2nd");
model->appendRow(new QStandardItem(qstr));
To copy to clipboard, switch view to plain text mode
However, I get the following errors at run time and no entry:
QObject::connect: Cannot queue arguments of type
'QModelIndex' (Make sure 'QModelIndex' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type
'QModelIndex' (Make sure 'QModelIndex' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QModelIndex'
(Make sure 'QModelIndex' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QModelIndex'
(Make sure 'QModelIndex' is registered using qRegisterMetaType().)
To copy to clipboard, switch view to plain text mode
Somehow the thread is not connected to the QModelIndex used at the beginning 
I am feverishly researching the matter whilst reading about MVC.
qRegisterMetaType<QString>(); --->>>didn't work!
Bookmarks