源码中查看qt有哪些module
需求
工作中需要静态交叉编译qt,在优化编译出来的程序时,发现有一些程序本不需要的东西被编进程序了,在解决过程中需要知道qt具体的module有哪些,本文章就是在查看源码的时候发现的。包含了所有的qt module,方便后面有针对性的取用。
方法
- 源码目录下,用
ls -a
可以看到一个.gitmodules
的目录,包含的module名就在其中 - 使用命令
cat .gitmodules | grep submodule | awk -F"\"" '{print $2}'
,即可得到所有的module 名
qtbase
qtsvg
qtdeclarative
qtactiveqt
qtscript
qtmultimedia
qttools
qtxmlpatterns
qttranslations
qtdoc
qtrepotools
qtqa
qtlocation
qtsensors
qtsystems
qtfeedback
qtdocgallery
qtpim
qtconnectivity
qtwayland
qt3d
qtimageformats
qtgraphicaleffects
qtquickcontrols
qtserialbus
qtserialport
qtx11extras
qtmacextras
qtwinextras
qtandroidextras
qtwebsockets
qtwebchannel
qtwebengine
qtcanvas3d
qtwebview
qtquickcontrols2
qtpurchasing
qtcharts
qtdatavis3d
qtvirtualkeyboard
qtgamepad
qtscxml
qtspeech
qtnetworkauth
qtremoteobjects
qtwebglplugin