Other C++ objects

There are many kinds of objects that do not fit in a parent-child relationship, because they are not derived from QObject, such as QFont or QColor. You must keep references to these objects yourself for as long as you need them, or you will lose the objects. (This doesn't differ from normal Python objects, of course — it will only be surprising if you come from C++ programming to Python.)