Home은 도큐먼트 처음으로 돌아오는 거고..
All Classes는 모든 클래스들이 나열 되어 있다.. 알파벳 순서대로 나열되어 있다..
All Functions는 클래스들이 가지고 있는 기능들이 나열 되어있다.
Overviews는 개요라고 해서 각 모듈이나 여러가제에 대한 간략한 설명들이 있다.
주로 많이 쓰는 건 All Classes다..
들어가보면 아주 많은 클래스들이 나열 되어 있다.
그중에 QObject에 대해서 설명할꺼다..
http://doc.qt.nokia.com/4.6/qobject.html
The QObject class is the base class of all Qt objects. More...
Properties.. 속성이라는 뜻이다.. QObject에는 objectName이라는 QString으로 만들어진 클래스를 속성으로 가지고 있다는 뜻이다.. 별거 없다..
Public Functions
공용 Functions 들이다.. C++를 배우면 아는것이니까 생략하겠다.. 공용으로 사용되는 메소드들을 나열 해 놓았다.
이름들을 보면 상당히 직관적으로 써 있기때문에 이 메소드들이 무슨 기능을 하는지 알기 쉽게 되어 있기때문에 좋다.
예를 들면 setParent(QObject *parent) 부모를 설정해주는 메소드이다.. 이름만 봐도 알 수 있다.
상세 설명이다.. 해당 클래스에 대한 자세한 설명이 되어 있다.
예제 같은것들이 있으니까 나중에 모르는 클래스들이 있다면 이것을 보고 참고하면 된다.
The QObject class is the base class of all Qt objects.
QObject is the heart of the Qt object model. The
central feature in this model is a very powerful mechanism for seamless
object communication called signals and
slots. You can connect a signal to a slot with connect()
and destroy the connection with disconnect().
To avoid never ending notification loops you can temporarily block
signals with blockSignals().
The protected functions connectNotify()
and disconnectNotify()
make it possible to track connections.
QObjects organize themselves in object trees.
When you create a QObject with another object as parent, the object will
automatically add itself to the parent's children()
list. The parent takes ownership of the object; i.e., it will
automatically delete its children in its destructor. You can look for an
object by name and optionally type using findChild()
or findChildren().
Every object has an objectName()
and its class name can be found via the corresponding metaObject()
(see QMetaObject::className()).
You can determine whether the object's class inherits another class in
the QObject inheritance hierarchy by using the inherits()
function.
When an object is deleted, it emits a destroyed()
signal. You can catch this signal to avoid dangling references to
QObjects.
QObjects can receive events through event() and
filter the events of other objects. See installEventFilter()
and eventFilter()
for details. A convenience handler, childEvent(),
can be reimplemented to catch child events.
Events are delivered in the thread in which the object was created;
see Thread Support in
Qt and thread()
for details. Note that event processing is not done at all for QObjects
with no thread affinity (thread()
returns zero). Use the moveToThread()
function to change the thread affinity for an object and its children
(the object cannot be moved if it has a parent).
Last but not least, QObject provides the basic timer support in Qt;
see QTimer for
high-level support for timers.
Notice that the Q_OBJECT
macro is mandatory for any object that implements signals, slots or
properties. You also need to run the Meta Object Compiler
on the source file. We strongly recommend the use of this macro in all
subclasses of QObject regardless of whether or not they actually use
signals, slots and properties, since failure to do so may lead certain
functions to exhibit strange behavior.
All Qt widgets inherit QObject. The convenience function isWidgetType()
returns whether an object is actually a widget. It is much faster than qobject_cast<QWidget *>(obj)
or obj->inherits("QWidget").