User Tools

Site Tools


qt:moc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qt:moc [2010/12/06 21:08] – created mithatqt:moc [2010/12/07 20:20] (current) mithat
Line 1: Line 1:
-''moc'' is a command line tool included with Qt. It stands for //meta-object compiler// and is responsible for connecting up all the signal and slots and/or other foo suggested by the ''Q_OBJECT'' macro.+====== Description ====== 
 +''moc'' is a command line tool included with Qt. Typically, the programmer does not interact directly with ''moc''. Instead, the project Makefile generated by ''qmake'' will specify the needed ''moc'' actions for a given project.
  
-Typically, the programmer does not interact directly with ''moc''. Instead, the project Makefile generated by ''qmake'' will specify the needed ''moc'' actions for a given project+''moc'' stands for //meta-object compiler// and must be run on all classes in a project that descend from [[QObject]]. The result of running ''moc'' on a class is a new file with prefix ''moc_'' that is pure C++. 
 + 
 +''moc'' is responsible for generating the code for implementing [[signal and slots]], creating the Qt [[property system]], implementing the Qt introspection mechanisms, and/or anything else that's suggested by class' descending from [[QObject]] and using the ''[[Q_OBJECT]]'' macro. 
 + 
 +====== Official documentation ====== 
 +http://doc.qt.nokia.com/moc.html
qt/moc.1291669736.txt.gz · Last modified: 2010/12/06 21:08 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki