Qt Object Model
|
| QMetaClassInfo | Additional information about a class |
|---|---|
| QMetaEnum | Meta-data about an enumerator |
| QMetaMethod | Meta-data about a member function |
| QMetaObject | Contains meta-information about Qt objects |
| QMetaProperty | Meta-data about a property |
| QMetaType | Manages named types in the meta-object system |
| QObject | The base class of all Qt objects |
| QObjectCleanupHandler | Watches the lifetime of multiple QObjects |
| QPointer | Template class that provides guarded pointers to QObjects |
| QSignalMapper | Bundles signals from identifiable senders |
| QVariant | Acts like a union for the most common Qt data types |
Some of the added features listed above for the Qt Object Model, require that we think of Qt Objects as identities, not values. Values are copied or assigned; identities are cloned. Cloning means to create a new identity, not an exact copy of the old one. For example, twins have different identities. They may look identical, but they have different names, different locations, and may have completely different social networks.
Then cloning an identity is a more complex operation than copying or assigning a value. We can see what this means in the Qt Object Model.
A Qt Object...
For these reasons, Qt Objects should be treated as identities, not as values. Identities are cloned, not copied or assigned, and cloning an identity is a more complex operation than copying or assigning a value. Therefore, QObject and all subclasses of QObject (direct or indirect) have their copy constructor and assignment operator disabled.
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |