| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
|---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/object.doc:36 --> | 
|---|
| 3 | <html> | 
|---|
| 4 | <head> | 
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | 
|---|
| 6 | <title>Qt Object Model</title> | 
|---|
| 7 | <style type="text/css"><!-- | 
|---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; } | 
|---|
| 9 | a:link { color: #004faf; text-decoration: none } | 
|---|
| 10 | a:visited { color: #672967; text-decoration: none } | 
|---|
| 11 | body { background: #ffffff; color: black; } | 
|---|
| 12 | --></style> | 
|---|
| 13 | </head> | 
|---|
| 14 | <body> | 
|---|
| 15 |  | 
|---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> | 
|---|
| 17 | <tr bgcolor="#E5E5E5"> | 
|---|
| 18 | <td valign=center> | 
|---|
| 19 | <a href="index.html"> | 
|---|
| 20 | <font color="#004faf">Home</font></a> | 
|---|
| 21 | | <a href="classes.html"> | 
|---|
| 22 | <font color="#004faf">All Classes</font></a> | 
|---|
| 23 | | <a href="mainclasses.html"> | 
|---|
| 24 | <font color="#004faf">Main Classes</font></a> | 
|---|
| 25 | | <a href="annotated.html"> | 
|---|
| 26 | <font color="#004faf">Annotated</font></a> | 
|---|
| 27 | | <a href="groups.html"> | 
|---|
| 28 | <font color="#004faf">Grouped Classes</font></a> | 
|---|
| 29 | | <a href="functions.html"> | 
|---|
| 30 | <font color="#004faf">Functions</font></a> | 
|---|
| 31 | </td> | 
|---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Qt Object Model</h1> | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | <p> The standard C++ Object Model provides very efficient runtime support | 
|---|
| 37 | for the object paradigm. But the C++ Object Model's static nature is | 
|---|
| 38 | inflexibile in certain problem domains. Graphical User Interface | 
|---|
| 39 | programming is a domain that requires both runtime efficiency and a | 
|---|
| 40 | high level of flexibility. Qt provides this, by combining the speed of | 
|---|
| 41 | C++ with the flexibility of the Qt Object Model. | 
|---|
| 42 | <p> Qt adds these features to C++: | 
|---|
| 43 | <p> <ul> | 
|---|
| 44 | <li> a very powerful mechanism for seamless object | 
|---|
| 45 | communication called <a href="signalsandslots.html">signals and | 
|---|
| 46 | slots</a>; | 
|---|
| 47 | <li> queryable and designable <a href="properties.html">object | 
|---|
| 48 | properties</a>; | 
|---|
| 49 | <li> powerful <a href="eventsandfilters.html">events and event filters</a>, | 
|---|
| 50 | <li> contextual <a href="i18n.html">string translation for internationalization</a>; | 
|---|
| 51 | <li> sophisticated interval driven <a href="timers.html">timers</a> | 
|---|
| 52 | that make it possible to elegantly integrate many tasks in an | 
|---|
| 53 | event-driven GUI; | 
|---|
| 54 | <li> hierarchical and queryable <a href="objecttrees.html">object | 
|---|
| 55 | trees</a> that organize object ownership in a natural way; | 
|---|
| 56 | <li> guarded pointers, <a href="qguardedptr.html">QGuardedPtr</a>, that are automatically | 
|---|
| 57 | set to 0 when the referenced object is destroyed, unlike normal C++ | 
|---|
| 58 | pointers which become "dangling pointers" when their objects are destroyed. | 
|---|
| 59 | </ul> | 
|---|
| 60 | <p> Many of these Qt features are implemented with standard C++ | 
|---|
| 61 | techniques, based on inheritance from <a href="qobject.html">QObject</a>. Others, like the | 
|---|
| 62 | object communication mechanism and the dynamic property system, | 
|---|
| 63 | require the <a href="metaobjects.html">Meta Object System</a> provided | 
|---|
| 64 | by Qt's own <a href="moc.html">Meta Object Compiler (moc)</a>. | 
|---|
| 65 | <p> The Meta Object System is a C++ extension that makes the language | 
|---|
| 66 | better suited to true component GUI programming. Although templates can | 
|---|
| 67 | be used to extend C++, the Meta Object System provides benefits using | 
|---|
| 68 | standard C++ that cannot be achieved with templates; see <a href="templates.html">Why doesn't Qt use templates for signals and | 
|---|
| 69 | slots?</a>. | 
|---|
| 70 | <p> | 
|---|
| 71 | <!-- eof --> | 
|---|
| 72 | <p><address><hr><div align=center> | 
|---|
| 73 | <table width=100% cellspacing=0 border=0><tr> | 
|---|
| 74 | <td>Copyright © 2007 | 
|---|
| 75 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a> | 
|---|
| 76 | <td align=right><div align=right>Qt 3.3.8</div> | 
|---|
| 77 | </table></div></address></body> | 
|---|
| 78 | </html> | 
|---|