QObjectList(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QObjectList β€” the manual page, but make it make sense πŸ’–

okay bestie, welcome to QObjectList(3qt) β€” yes it's a Qt manual page, yes it's from the 3qt section, and yes I'm gonna walk you through every single crumb of it. grab a boba, we're doing this πŸ§‹βœ¨


🌸 NAME 🌸

QObjectList β€” it's literally a QPtrList of QObjects. that's the whole vibe. a list. of QObjects. iconic behavior honestly.


✨ SYNOPSIS ✨

#include <qobjectlist.h>

Inherits QPtrList<QObject>.

πŸŽ€ Public Members πŸŽ€

QObjectList ()
QObjectList ( const QObjectList & list )
~QObjectList ()
QObjectList & operator= ( const QObjectList & list )

four little functions, all of them doing exactly what they look like they do. we love a low-effort legend πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so. the QObjectList class is a QPtrList of QObjects. that's it, that's the class. no cap.

a QObjectList is a QPtrList<QObject>. you can walk through it using the inherited functions β€” things like getFirst(), next(), etc. β€” or you can use a QObjectListIterator iterator instead. two roads, both slay 🌈

want to see it in the wild? peep QObject::queryList() for an example of use. go look, it's cute.

See also: QObjectListIterator, QObject, Collection Classes, and Non-GUI Classes. the whole friend group 🫢


πŸ‘‘ MEMBER FUNCTION DOCUMENTATION πŸ‘‘

QObjectList::QObjectList ()

Constructs an empty QObject list. blank canvas. fresh start. main character energy ✨


QObjectList::QObjectList ( const QObjectList & list )

Constructs a copy of list.

each item in list gets appended to this list. and here's the thing β€” only the pointers are copied (shallow copy). so don't come for me later when you're like "why are they sharing" 😭 that's just how it is.


QObjectList::~QObjectList ()

Removes all the object pointers from the list and destroys the list.

all list iterators that access this list will be reset. every single one. gone. reset. it's giving cleanup era 🧹

See also: setAutoDelete().


QObjectList & QObjectList::operator= ( const QObjectList & list )

Assigns list to this list and returns a reference to this list.

this list gets cleared first, and then each item in list is appended to this list. again β€” only the pointers are copied (shallow copy) unless newItem() has been reimplemented(). read that twice bestie, it matters πŸ“


πŸ’œ SEE ALSO πŸ’œ


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.


⭐ AUTHOR ⭐

Generated automatically from the source code. (yes, nobody hand-wrote this. it spawned from the source code itself. spooky. iconic. same thing πŸ’€)


πŸ’… BUGS πŸ’…

found a bug in Qt? report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. (fr fr, they mean it πŸ₯Ί)

the definitive Qt documentation is provided in HTML format β€” it lives at $QTDIR/doc/html and you can read it using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. so like, it's a favor, not a promise πŸ™ˆ

found errors in this manual page? report them to qt-bugs@trolltech.com. please include the name of the manual page (qobjectlist.3qt) and the Qt version (3.3.8). include the receipts, always 🧾


and that's the whole page, bestie. written by Trolltech AS, dated 2 February 2007, and yes it's the QObjectList(3qt) page β€” Qt 3.3.8 era, the golden oldies πŸ’– go forth and traverse your list, you absolute legend πŸŽ€βœ¨

πŸ“¦ where this page comes from