Chinaunix首页 | 论坛 | 博客
  • 博客访问: 637280
  • 博文数量: 121
  • 博客积分: 8469
  • 博客等级: 中将
  • 技术积分: 1065
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-03 10:32
文章分类

全部博文(121)

文章存档

2013年(1)

2012年(15)

2010年(2)

2009年(8)

2008年(95)

我的朋友

分类: LINUX

2008-07-17 14:16:35

Qt源码目录下src/tools/qfeatures.h文件包含了src/tools/qconfig.h,因此修改qconfig.h,就可以编译自己想要的特征,即qt所有功能的一个子集。

需要注意的是这样的修改只有Qt/Embedded平台能支持,因为嵌入式环境中,减小qt库的大小很重要,并且应用配置常常是固定的。

config.h文件定义的是需要去除的特征。有些特征依赖于其他的特征,这些依赖关系在qfeatures.h可以看到。

可选项如下:

Macro Disables Set automatically by
Images (QImageIO)
QT_NO_IMAGEIO_BMP The Microsoft Bitmap image file format.  
QT_NO_IMAGEIO_PPM The Portable Pixmap image file format.  
QT_NO_IMAGEIO_XBM The X11 Bitmap image file format.  
QT_NO_IMAGEIO_XPM The X11 Pixmap image file format.  
QT_NO_IMAGEIO_PNG The Portable Network Graphics image file format.  
Animation
QT_NO_ASYNC_IO Asynchronous I/O ()  
QT_NO_ASYNC_IMAGE_IO Asynchronous Image I/O and GIF image support (QImageDecoder, ...)  
QT_NO_MOVIE Animation support () QT_NO_ASYNC_IO, QT_NO_ASYNC_IMAGE_IO
Fonts
QT_NO_TRUETYPE TrueType (TTF and TTC) font file format, only used by Qt/Embedded.  
QT_NO_BDF Bitmap Distribution Format (BDF) font file format, only used by Qt/Embedded.  
QT_NO_FONTDATABASE Font database.  
QT_NO_I18N Conversions between Unicode and 8-bit encodings.  
QT_NO_UNICODETABLES Large tables defining such things as upper and lowercase conversions for all Unicode characters.  
MIME
QT_NO_MIME Multipurpose Internet Mail Extensions, an internet standard for encoding and tagging typed data (eg. text, images, colors) ()  
QT_NO_RICHTEXT HTML-like text (, ) QT_NO_MIME
QT_NO_DRAGANDDROP Drag-and-drop data between applications () QT_NO_MIME
QT_NO_CLIPBOARD Cut-and-paste data between applications () QT_NO_MIME
Sound
QT_NO_SOUND Playing audio files ()  
Scipting
QT_NO_PROPERTIES Scripting of Qt-based applications.  
Qt/Embedded-specific
QT_NO_QWS_CURSOR The cursor sprite on Qt/Embedded. Pen-operated devices would not normally need this feature.  
QT_NO_QWS_DEPTH_8GRAYSCALE 8 bits per pixel: 256 levels of gray. Incompatible with QWS_DEPTH_8.  
QT_NO_QWS_DEPTH_8 8 bits per pixel: 216-color cube with 40 auxiliary colors. Incompatible with QWS_DEPTH_8GRAYSCALE.  
QT_NO_QWS_DEPTH_15 15 bits per pixel: 32 levels for each of red, green and blue.  
QT_NO_QWS_DEPTH_16 16 bits per pixel: 64 levels of green, 32 levels for red and for blue.  
QT_NO_QWS_DEPTH_32 32 bits per pixel: 256 levels for each of red, green and blue.  
QT_NO_QWS_MACH64 Mach64 accelerated driver (demonstration only).  
QT_NO_QWS_VFB Virtual framebuffer running on X11 (see reference documentation).  
Networking
QT_NO_NETWORKPROTOCOL Abstract multi-protocol data retrieval, with local file retrieval included ()  
QT_NO_NETWORKPROTOCOL_FTP FTP-protocol data retrieval. QT_NO_NETWORKPROTOCOL
QT_NO_NETWORKPROTOCOL_HTTP HTTP-protocol data retrieval. QT_NO_NETWORKPROTOCOL
Painting/drawing
QT_NO_COLORNAMES Color names such as "red", used by some constructors and by some HTML documents (, )  
QT_NO_TRANSFORMATIONS Used by a number of classes in Qt. With this, rotation and scaling are possible. Without it, only co-ordinate translation ()  
QT_NO_PSPRINTER PostScript printer support.  
QT_NO_PRINTER Printer support () QT_NO_PSPRINTER (Unix only)
QT_NO_PICTURE Save Qt drawing commands to a files ()  
Widgets
QT_NO_WIDGETS Disabling this disables all widgets except .  
QT_NO_TEXTVIEW HTML document viewing () QT_NO_WIDGETS, QT_NO_RICHTEXT
QT_NO_TEXTBROWSER HTML document browsing () QT_NO_TEXTVIEW
QT_NO_ICONVIEW Labelled icons () QT_NO_WIDGETS, QT_NO_DRAGANDDROP
QT_NO_LISTVIEW Lists of information () QT_NO_WIDGETS
QT_NO_CANVAS Object canvas () QT_NO_WIDGETS
QT_NO_DIAL Value control () QT_NO_WIDGETS
QT_NO_WORKSPACE Multi-document interface () QT_NO_WIDGETS
QT_NO_LCDNUMBER LCD-like number display () QT_NO_WIDGETS
GUI Styles
QT_NO_STYLE_WINDOWS Microsoft Windows style () QT_NO_WIDGETS
QT_NO_STYLE_MOTIF OSF Motif style () QT_NO_WIDGETS
QT_NO_STYLE_CDE Open Group CDE style () QT_NO_STYLE_MOTIF
QT_NO_STYLE_AQUA MacOS X style (QAquaStyle)
QT_NO_STYLE_PLATINUM MacOS 9 style () QT_NO_WIDGETS
QT_NO_STYLE_SGI SGI style () QT_NO_STYLE_MOTIF
Dialogs
QT_NO_DIALOGS Disabling this disables all common dialogs . QT_NO_WIDGETS
QT_NO_FILEDIALOG The file selection dialog () QT_NO_DIALOGS, QT_NO_NETWORKPROTOCOL, QT_NO_LISTVIEW
QT_NO_FONTDIALOG The font selection dialog () QT_NO_DIALOGS, QT_NO_FONTDATABASE
QT_NO_COLORDIALOG The color selection dialog () QT_NO_DIALOGS
QT_NO_INPUTDIALOG Text input dialog () QT_NO_DIALOGS
QT_NO_MESSAGEBOX Message/prompting dialog () QT_NO_DIALOGS
QT_NO_PROGRESSDIALOG Long-computation progress dialog () QT_NO_DIALOGS
QT_NO_TABDIALOG Tabbed-pages dialog () QT_NO_DIALOGS
QT_NO_WIZARD Multi-step dialog () QT_NO_DIALOGS





阅读(3390) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~