[ fromfile: qobject-questions.xml id: qobject-questions ]
What does it mean when QObject A is the parent of QObject B?
B is managed by A, and B will be destroyed when A is.
Which QObjects do not need a parent?
Those that are allocated on the stack.
What happens to a QObject when it is reparented?
It is removed from its former parent's child list, and added to the new parent's child list.
Why is the copy constructor of QObject not public?
To prevent it from being copied. QObject
s are supposed to have identity, and so there should be no "exact" copy.
What is the composite pattern?
How can QObject be both composite and component?
When it has both parents and children.
How can you access the children of a QObject?
What is an event loop? How is it initiated?
What is a signal? How do you call one?
What is a slot? How do you call one?
How are signals and slots connected?
In the case where multiple signals are connected to the same slot, how can you determine the QObject that emitted the signal?
How can information be transmitted from one object to another?
Deriving a class from QObject more than once can cause problems. How might that happen accidentally?
What is the difference between value types and object types? Give examples.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |