How many Functions in Qt: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Removed cleanup notice)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Developing_Qt]]<br />h1. How many functions are there in Qt?
{{delete| reason=Outdated information}}
[[Category:Developing_Qt]]
= How many functions are there in Qt? =
For Qt 4.5.1, on Linux:
 
<code>
# This script gives an approximation only!
cd /usr/local/Trolltech/Qt-4.5.1/lib;
for thing in QtCore QtGui QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns phonon Qt3Support QtTest QtDBus; do
printf 's: ' "$thing";
nm -D lib$thing.so | grep ' T _ZN' | egrep -v '11qt_metaca[sl][tl]' | wc -l;
</code>
 
<code>
phonon: 424
Qt3Support: 4744
QtCore: 2798
QtDBus: 274
QtGui: 10272
QtNetwork: 879
QtOpenGL: 238
QtScript: 312
QtScriptTools: 17
QtSql: 400
QtSvg: 114
QtTest: 62
QtWebKit: 329
QtXml: 421
QtXmlPatterns: 190
TOTAL: 21474
</code>
 
About twenty-one thousand.


For Qt 4.5.1, on Linux:
This data includes functions with C++ linkage exported from the Qt libraries.
 
It deliberately excludes:


<code><br /># This script gives an approximation only!<br />cd /usr/local/Trolltech/Qt-4.5.1/lib;<br />for thing in QtCore QtGui QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns phonon Qt3Support QtTest QtDBus; do<br /> printf 's: ' &quot;$thing&amp;quot;;<br /> nm -D lib$thing.so | grep ' T _ZN' | egrep -v '11qt_metaca[sl][tl]' | wc <s>l;<br /></code>
* "tool" modules- QtDesigner, QtUiTools, QtHelp and QtAssistant
<br /><code><br /> phonon: 424<br /> Qt3Support: 4744<br /> QtCore: 2798<br /> QtDBus: 274<br /> QtGui: 10272<br /> QtNetwork: 879<br /> QtOpenGL: 238<br /> QtScript: 312<br /> QtScriptTools: 17<br /> QtSql: 400<br /> QtSvg: 114<br /> QtTest: 62<br /> QtWebKit: 329<br /> QtXml: 421<br /> QtXmlPatterns: 190<br /> TOTAL: 21474<br /></code>
* inline functions
<br />About twenty-one thousand.
* functions which are not exported (e.g. in private classes)
<br />This data includes functions with C++ linkage exported from the Qt libraries.
* functions with C linkage, i.e. `extern "C"`
<br />It deliberately excludes:
* qt_metacall and qt_metacast
<br />* &quot;tool&amp;quot; modules</s> QtDesigner, QtUiTools, QtHelp and QtAssistant<br />* inline functions<br />* functions which are not exported (e.g. in private classes)<br />* functions with C linkage, i.e. `extern &quot;C&amp;quot;`<br />* qt_metacall and qt_metacast

Latest revision as of 18:44, 28 June 2015

This article is nominated for deletion. Reason: Outdated information
Please raise your support/opposition to this nomination in the article's discussion page.

How many functions are there in Qt?

For Qt 4.5.1, on Linux:

# This script gives an approximation only!
cd /usr/local/Trolltech/Qt-4.5.1/lib;
for thing in QtCore QtGui QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns phonon Qt3Support QtTest QtDBus; do
 printf 's: ' "$thing";
 nm -D lib$thing.so | grep ' T _ZN' | egrep -v '11qt_metaca[sl][tl]' | wc -l;
 phonon: 424
 Qt3Support: 4744
 QtCore: 2798
 QtDBus: 274
 QtGui: 10272
 QtNetwork: 879
 QtOpenGL: 238
 QtScript: 312
 QtScriptTools: 17
 QtSql: 400
 QtSvg: 114
 QtTest: 62
 QtWebKit: 329
 QtXml: 421
 QtXmlPatterns: 190
 TOTAL: 21474

About twenty-one thousand.

This data includes functions with C++ linkage exported from the Qt libraries.

It deliberately excludes:

  • "tool" modules- QtDesigner, QtUiTools, QtHelp and QtAssistant
  • inline functions
  • functions which are not exported (e.g. in private classes)
  • functions with C linkage, i.e. `extern "C"`
  • qt_metacall and qt_metacast