Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common modules of QT5

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "what are the common modules of QT5", the content is simple and clear, and I hope it can help you solve your doubts. Let the editor lead you to study and learn what are the common modules of QT5.

One of the biggest differences between Qt 5 and Qt 4 is that the underlying architecture has been modified. Qt 5 introduces the concept of modularity, subdividing many functions into several modules. Qt 4 also has the concept of modules, but it is a rough division, while Qt 5 is more detailed. This article mainly gives a brief introduction to the modules of Qt 5, so that we can know which module to look for when we need any functions in the future.

Qt 5 module is divided into Essentials Modules and Add-on Modules. The former is a basic module that is available on all platforms, while the latter is an extension module that is based on the basic module and can be introduced as appropriate on a platform that can run Qt.

QtEssentials contains all the basic Qt modules, which run well on all supported development platforms and specific test target platforms, and maintain good compatibility. These required modules are widely used in most Qt applications. Even if a module can be used on all supported development platforms, it is classified as an add-on module group as long as it is used to implement a specific problem.

The basic modules of Qt5 are divided into the following:

Qt Core contains core non-graphical classes that are widely called by other modules

Qt GUI contains basic classes related to GUI components, including OpenGL

Qt Multimedia contains classes related to audio, video, wireless broadcast and camera functions

Qt Multimedia Widgets contains classes related to controls that support multimedia functions

Qt Network contains classes that simplify and optimize network programming

Qt QML contains classes related to QML,JavaScript

Qt Quick uses the common user interface to build a descriptive framework for dynamic applications

QtQuick Controls is to build a traditional desktop-style user interface, based on the reuse of QtQuick by UIcontrols.

QtQuick Layouts Layouts is used to arrange QtQuick items at the user interface level, and Layouts itself is counted as QtQuick items

Qt SQL contains classes for database usage integration using SQL

Qt Test contains classes for testing Qt applications and libraries

Qt WebKit contains classes to support WebKit2-based use with the new QMLAPI. Reference QtWebKit Widgits entry

Qt WebKit Widgets contains WebKit1 for supporting Qt4 and related control-based display classes

Qt Widgets contains classes that extend QtGUI with C++ 's controls.

QtAdd-Ons contains additional modules for specific purposes, supporting most development platforms and some target platforms. Each module maintains its own compatibility.

Active Qt contains classes for applications that use ActiveX and COM

Qt Concurrent contains classes that jump out of the thread primitive level to simplify multithreaded programming

Qt D-Bus contains classes for interprocess communication based on the D-Bus protocol

Qt Graphical Effects contains classes for building QtQuick2 graphical effects

Qt Image Formats is some additional classes that support multiple image formats, such as TIFF,MNG,TGA,WBMP

Qt OpenGL contains classes to support OpenGL Note: it is recommended to use the OpenGL-related classes in the QtGUI module in the new code

Qt Print Support contains classes that simplify printing

Qt Declarative provides instructions for compatibility with Qt4

Qt Script contains classes that script Qt applications. In order to maintain compatibility with Qt4, it is recommended to use the QJS* class in QtQml in new code.

QtScript Tools provides add-ons that use QtScript programs

Qt Sensors contains classes that control hardware sensors and recognize mobile gestures.

Qt Serial Port contains classes that can obtain hardware virtual sequence interfaces

Qt SVG contains classes for displaying the contents of the SVG file

Qt X11 Extras provides specific API to support X11

C++ implementation of Qt XML SAX and DOM Note: it is recommended to use QXmlStreamReader and QXmlStreamWriter classes in new code

Qt XML Patterns is used to support XPath,XQuery,XSLT,XML schema validation

QtTools Tools provides official tools that can run on all supported development platforms.

The following is a list of modules for QtTools:

Qt Designer

Contains classes that extend QtDesigner

Qt Help

Contains classes that provide online support

Qt UI Tools

Contains classes that provide UI tools

Qt 4 is also divided into several modules, but these modules are somewhat different from Qt 5. Here are the modules of Qt 4:

The non-GUI core class library provided by QtCore,Qt is roughly the same as Qt 5, except that the core class library of Qt 4 does not include JSON, XML processing, and so on.

QtGui, a graphical user interface component, is equivalent to the sum of the QtGui and QtWidgets modules of Qt 5.

QtMultimedia, multimedia support, related parts similar to Qt 5.

QtNetwork, network support, similar to Qt 5.

QtOpenGL, providing support for OpenGL. In Qt 5, this part is migrated to the QtGui module.

QtOpenVG, providing support for OpenVG.

QtScript, providing support for Qt Scripts. Qt Script is a scripting language similar to JavaScript. In Qt 5, the JavaScript part of QtQml is recommended.

QtScriptTools, an additional component for QtScript.

QtSql, which provides support for SQL databases.

QtSvg, providing support for SVG files.

QtWebKit, providing display and editing of Web content.

QtXml,XML processing, which was added to QtCore in Qt 5.

QtXmlPatterns, which provides support for XQuery, XPath, etc.

QtDeclarative, an engine for writing a graphical user interface in the form of animation.

Phonon, multimedia framework.

Qt3Support,Qt 3 compatible class library.

Here are some tool modules for Qt 4:

QtDesigner to extend QtDesigner.

QtUiTools, which is used to process form files generated by Qt Designer in your own referencing program.

QtHelp, online help.

QtTest, unit testing.

Here are the modules dedicated to the Windows platform:

QAxContainer, used to access the ActiveX control.

QAxServer, which is used to write ActiveX servers.

Here are the modules dedicated to the Unix platform:

QtDBus, using D-Bus to provide inter-process interaction

The above is all the contents of the article "what are the common modules of QT5?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report