外文文献—QT4.0 白皮书.doc
《外文文献—QT4.0 白皮书.doc》由会员分享,可在线阅读,更多相关《外文文献—QT4.0 白皮书.doc(7页珍藏版)》请在三一办公上搜索。
1、附录I 英文资料翻译QT 4.0 Whitepapper1. Introduction Qt is the de facto standard C+ framework for high performance cross-platform Software development. In addition to an extensive C+ class library ,Qt includes tools to make writing applications fast and straightforward. Qts cross-platform capabilities and in
2、ternationalization support ensure that Qt applications reach the widest possible market. The Qt C+ frame work has been at the heart of commercial applications since1995. Qt is used by companies and organizations as diverse as Adobe., Boeing., IBM., Motorola., NASA, Skype., and by numerous smaller co
3、mpanies and organizations. Qt 4 is designed to be easier to use than previous versions of Qt, while adding more powerful functionality. Qts classes are fully featured and provide consistent interfaces to assist learning, reduce developer workload, and increase programmer productivity. Qt is, and alw
4、ays has been, fully object-oriented. This whitepaper gives an overview of Qts tools and functionality. Each section begins with a non-technical introduction before providing a more detailed description of relevant features . Links to online resources are also given for each subject area.1.1. Executi
5、ve Summary Qt includes a rich set of widgets(“controls”in Windows terminology)that provide standard GUI functionality. Qt introduces an innovative alternative for inter-object communication ,called “signals and slots”,that replaces the old and unsafe callback technique used in many legacy frameworks
6、. Qt also provides a conventional event model for handling mouse clicks ,key presses, and other user input .Qts cross-platform GUI applications can support all the user interface functionality required by modern applications, such as menus, context menus ,drag and drop , and dockable toolbars. Qt al
7、so includes Qt Designer (page 20), a tool for graphically designing user interfaces. Qt Designer supports Qts powerful layout features (page 39) in addition to absolute positioning. Qt Designer can be used purely for GUI design, or to create entire applications with its support for integration with
8、popular integrated development environments(IDEs). Qt has excellent supportfor2D and3Dgraphics. Qt is the de facto standard GUI framework for platform-independent OpenGL.programming.Qt4spainting system offers high quality rendering across all supported platforms. Qt makes it possible to create platf
9、orm-independent database applications using standard databases. Qt includes native drivers for Oracle ,Microsoft SQL Server, Sybase .Adaptive Server, IBMDB2, PostgreSQL., MySQL., Borland Interbase, SQLite, and ODBC-compliant databases. Qt includes database-specific widgets, and any built-in or custo
10、m widget can be made data-aware. Qt programs have native look and feel on all supported platforms using Qts styles and themes support. From a single source tree, recompilation is all that is required toproduceapplicationsforWindows.98 to XP ,MacOS X. , Linux , Solaris ,HP-UX., and many other version
11、s of Unix with X11.Qt applications can also be compiled to run on Qt opia. Qts qmake build tool produces makefiles or .dsp files appropriate to the target platform.Since Qts architecture takes advantage of the underlying platform, many customers use Qt for single-platform development on Windows, Mac
12、 OS X, and Unix because they prefer Qts approach. Qt includes support for important platform-specific features, such as ActiveX on Windows , and Motif on Unix . See the section on Qts Architecture for more information. Qt uses Unicode .throughout and has consider able support for internationalizatio
13、n. Qt includes Qt Linguist and other tools to support translators. Applications can easily use and mix text in Arabic, Chinese, English, Hebrew, Japanese, Russian, and other languages supported by Unicode. Qt includes a variety of domain-specific classes. For example, Qt has an XML module that inclu
14、des SAX and DOM classes for reading and manipulating data stored in XML-based formats. Objects can be stored in memory using Qts STL-compatible collection classes, and handled using styles of iterators used in Java. And the C+ Standard Template Library(STL).Local and remote file handling using stand
15、ard protocols are provided by Qts input/output and networking classes. Qt applications can have their functionality extended by plugins and dynamic libraries . Plugins provide additional codecs ,data base drivers ,image formats, styles, and widgets. Plugins and libraries can be sold as products in t
16、heir own right. Qt is a mature C+ framework that is widely used around the world. In addition to Qts many commercial uses, the Open Source edition of Qt is the foundation of KDE ,the Linux desktop environment .Qt makes application development a pleasure ,with its cross platform build system, visual
17、form design, and elegant API. 2. Widgets Qt provides a rich set of standard widgets that can be used to create graphical user interfaces for applications. Qts widgets are flexible and can easily be subclassed to suit specialized requirements. Widgets are visual elements that are combined to create u
18、ser interfaces. Buttons, menus, scroll bars, message boxes, and application windows are all examples of widgets. Qts widgets are not arbitrarily divided between “controls”and “containers”; all widgets can be used both as controls and as containers. Custom widgets can easily be created by subclassing
19、 existing Qt widgets, or created from scratch if necessary. Standard widgets are provided by the QWidget class and its subclasses, and custom widgets can be created by subclassing them and reimplementing virtual functions. A widget may contain any number of child widgets. Child widgets are shown wit
20、hin the parent widgets area. A widget with no parent is a top-level widget (a “window”), and usually has its own entry in the desktop environments task bar. Qt imposes no arbitrary limitations on widgets. Any widget can be a top-level widget; any widget can be a child of any other widget. The positi
21、on of child widgets within the parents area can be set automatically using layout managers, or manually if preferred. When a parent widget is disabled , hidden , or deleted, the same action is recursively applied to all its child widgets.3. Signals and Slots Signals and slots provide inter-object co
22、mmunication. They are easy to understand and use, and are fully supported by Qt Designer. GUI applications respond to user actions .For example, when a user clicks a menu item or a toolbar button, the application executes some code. More generally, we want objects of any kind to be able to communica
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文文献QT4.0 白皮书 外文 文献 QT4
链接地址:https://www.31ppt.com/p-2385889.html