QObjectList list; list.append(new QObject); list.append(new QWidget); list.append(new QThread); qDebug() << "List size: " << list.size();This code creates a new QObjectList named "list" and appends three objects to it: a QObject, a QWidget, and a QThread. It then prints the size of the list to the console. Package library: Qt.