日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

PyQt5 Introduction and components

發布時間:2025/3/19 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PyQt5 Introduction and components 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在開始寫代碼以前,對PyQt5整體大致了解一下還是有必要的。這方面的東西看看PyQt5官方給出的文檔就好,下面就是我從文中截取的部分內容:

Introduction

PyQt5 is a set of Python bindings for v5 of the Qt application framework from The Qt Company.

Qt is a set of C++ libraries and development tools that includes platform independent abstractions for graphical user interfaces, networking, threads, regular expressions, SQL databases, SVG, OpenGL, XML, user and application settings, positioning and location services, short range communications (NFC and Bluetooth) and access to the cloud. PyQt5 implements over 1000 of these classes as a set of Python modules.

components

PyQt5 comprises a number of different components. First of all there are a number of Python extension modules. These are all installed in the PyQt5 Python package.

QAxContainer contains classes that allow access to ActiveX controls and COM objects. It does not support the ability to write ActiveX servers in Python. It is only available under Windows.

QtBluetooth contains classes that enables an application to scan for devices and connect and interact with them.

QtCore contains the core classes, including the event loop and Qt’s signal and slot mechanism. It also includes platform independent abstractions for animations, state machines, threads, mapped files, shared memory, regular expressions, and user and application settings.

QtDBus contains classes that support Inter-Process Communication using the D-Bus protocol. It is not available under Windows.

QtDesigner contains classes that allow Qt Designer to be extended using PyQt5. See Writing Qt Designer Plugins for a full description of how to do this.

QtGui contains classes for windowing system integration, event handling, 2D graphics, basic imaging, fonts and text. It also containes a complete set of OpenGL and OpenGL ES bindings (see Support for OpenGL). Application developers would normally use this with higher level APIs such as those contained in the QtWidgets module.

QtHelp contains classes for creating and viewing searchable documentation.

QtLocation contains classes for accessing geocoding and navigation information, and also place search. It allows the creation of mapping solutions using data from some of the popular location services.

QtMacExtras contains additional classes that are specific to OS X and iOS.

QtMultimedia contains classes to handle multimedia content and APIs to access camera and radio functionality.

QtMultimediaWidgets contains classes to handle multimedia content in QtWidgets based applications.

QtNetwork contains classes for writing UDP and TCP clients and servers. It includes classes that implement HTTP clients and support DNS lookups.

QtNfc contains classes to provide connectivity between NFC enabled devices. The NFC API provides APIs for interacting with NFC Forum Tags and NFC Forum Devices, including target detection and loss, registering NDEF message handlers, reading and writing NDEF messages on NFC Forum Tags and sending tag specific commands.

QtOpenGL contains classes that allow the use of OpenGL in rendering 3D graphics in QtWidgets based applications.

QtPositioning contains classes to determine a position by using a variety of possible sources, including satellite, or Wi-Fi, or a text file, and so on. That information can then be used to, for example, determine a position on a map. In addition satellite information can be retrieved and area based monitoring can be performed.

QtPrintSupport contains classes to allow applications to print to locally attached and remote printers. It also enables the generation of PostScript and PDF files.

QtQml contains classes to allow applications to integrate support for QML and JavaScript. Python objects can be exported to QML or be created from QML in the same way that Qt allows the same with C++ instances. See Integrating Python and QML for a fuller description of how to do this.

QtQuick contains classes that provide the basic elements necessary for creating user interfaces with QML.

QtQuickWidgets contains classes that support the display of a QML scene in a traditional widget.

QtSensors contains classes that provide access to a system’s hardware sensors including accelerometers, altimeters, ambient light and temperature sensors, gyroscopes and magnetometers. Note that sensor gestures are not currently supported.

QtSerialPort contains classes that provide access to a system’s serial ports.

QtSql contains classes that integrate with SQL databases. It includes editable data models for database tables that can be used with GUI classes. It also includes an implementation of SQLite.

QtSvg contains classes for displaying the contents of SVG files.

QtTest contains functions that enable unit testing of PyQt5 applications. (PyQt5 does not implement the complete Qt unit test framework. Instead it assumes that the standard Python unit test framework will be used and implements those functions that simulate a user interacting with a GUI.) In addition the QSignalSpy class provides easy introspection of Qt’s signals and slots.

QtWebChannel contains classes for transparently accessing QObject or QML objects from HTML clients.

QtWebEngineWidgets contains classes for a Chromium based implementation of a web browser. This supercedes the QtWebKit module and provides better and up-to-date support for HTML, CSS and JavaScript features. However it also consumes more resources and doesn’t give direct access to the network stack and the HTML document via C++ APIs.

  Note QtWebEngineWidgets is not normally available under Windows because of compiler incompatibilities. QtWebEngineWidgets requires MSVC2013 (or later)    but the version used to build Python v3 is MSVC2010.

QtWebKit contains classes for a WebKit2 based implementation of a web browser.

QtWebKitWidgets contains classes for a WebKit1 based implementation of a web browser for use in QtWidgets based applications.

QtWebSockets contains classes that implement the WebSocket protocol described in RFC 6455.

QtWidgets contains classes that provide a set of UI elements to create classic desktop-style user interfaces.

QtWinExtras contains additional classes that are specific to Windows, for example providing access to Jump Lists, a progress indicator on a taskbar button, and a thumbnail toolbar.

QtX11Extras contains additional classes that are specific to X11.

QtXml module. This module contains classes that implement SAX and DOM interfaces to Qt’s XML parser.

QtXmlPatterns contains classes that provide support for XPath, XQuery, XSLT and XML Schema validation.

Enginio implements the client-side library for accessing the Qt Cloud Services Managed Application Runtime.

Qt consolidates the classes contained in all of the modules described above into a single module. This has the advantage that you don’t have to worry about which underlying module contains a particular class. It has the disadvantage that it loads the whole of the Qt framework, thereby increasing the memory footprint of an application. Whether you use this consolidated module, or the individual component modules is down to personal taste.

uic contains classes for handling the .ui files created by Qt Designer that describe the whole or part of a graphical user interface. It includes classes that load a .ui file and render it directly, and classes that generate Python code from a .ui file for later execution.

PyQt5 contains plugins that enable Qt Designer and qmlscene to be extended using Python code. See Writing Qt Designer Plugins and Integrating Python and QML respectively for the details.

PyQt5 also contains a number of utility programs.

  pyuic5 corresponds to the Qt uic utility. It converts QtWidgets based GUIs created using Qt Designer to Python code.
  pyrcc5 corresponds to the Qt rcc utility. It embeds arbitrary resources (eg. icons, images, translation files) described by a resource collection file in a Python      module.
  pylupdate5 corresponds to the Qt lupdate utility. It extracts all of the translatable strings from Python code and creates or updates .ts translation files. These are   then used by Qt Linguist to manage the translation of those strings.

The DBus support module is installed as dbus.mainloop.pyqt5. This module provides support for the Qt event loop in the same way that the dbus.mainloop.glib included with the standard dbus-python bindings package provides support for the GLib event loop. The API is described in DBus Support. It is only available if the dbus-python v0.80 (or later) bindings package is installed. The QtDBus module provides a more Qt-like interface to DBus.

When PyQt5 is configured a file called PyQt5.api is generated. This can be used by the QScintilla editor component to enable the use of auto-completion and call tips when editing PyQt5 code. The API file is installed automatically if QScintilla is already installed.

PyQt5 includes a large number of examples. These are ports to Python of many of the C++ examples provided with Qt. They can be found in the examples directory.

Finally, PyQt5 contains the .sip files used by SIP to generate PyQt5 itself. These can be used by developers of bindings of other Qt based class libraries.

IDLE下先import模塊,再用help()和dir()查看模塊

轉載于:https://www.cnblogs.com/pyjogger/p/4694738.html

總結

以上是生活随笔為你收集整理的PyQt5 Introduction and components的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 狠狠躁夜夜躁人人爽视频 | 黄色一级片在线播放 | 黄色片毛片 | 亚洲欧美va天堂人熟伦 | 国产精品3| 老司机综合网 | 免费一区 | 欧美在线观看视频一区 | 日韩中文一区二区三区 | 青青在线观看视频 | 黄网址在线 | 欧美一级射 | 久久久久久久久久久久久久久久久久久久 | 麻豆视频在线观看 | 在线观看av一区二区 | 亚洲一级片免费看 | 黄色一级片在线免费观看 | 国产欧美一区二区精品性色超碰 | 色综网 | 毛片视频大全 | 国产主播在线播放 | yw在线观看 | 99草视频 | 美女啪啪网址 | 上原亚衣av一区二区三区 | 日韩av在线免费 | 国产精品久久久久久久久久免费看 | 丰满少妇大力进入 | 国产亚洲成av人在线观看导航 | 成人精品在线视频 | 丰满尤物白嫩啪啪少妇 | 精品国产乱码久久久久久蜜柚 | 一区二区成人精品 | 热99视频 | 91精品国产91久久久久久黑人 | 日本一区二区三区视频在线 | free国产hd露脸性开放 | 亚洲免费在线观看 | 亚洲一级黄色片 | 丁香花婷婷 | 欧美xxxbbb | 国产免费黄色片 | 国产五区 | 久久依人网 | 国模精品一区 | 欧美1区2区3区 | 婷婷丁香六月天 | 亚洲精品久久久中文字幕痴女 | 1024视频在线| 日本内谢少妇xxxxx少交 | 国产精品21p | 欲求不满在线小早川怜子 | 日韩有码在线播放 | 福利视频在线播放 | 毛片导航 | 男女在线观看 | 亚洲精品一二三四 | 久久国产影视 | 在线观看视频国产 | 亚洲高清在线视频 | 一本色道久久综合亚洲精品按摩 | 韩国色网 | 成人黄色动漫在线观看 | 日本小视频网站 | 欧美熟妇交换久久久久久分类 | 91精品福利视频 | 天天干夜夜艹 | 国产精品99久久久久久大便 | 11一12免费毛片 | 伊人久久久久久久久久 | 一本一本久久a久久精品综合麻豆 | 成人午夜视频精品一区 | 日本中文在线 | 免费性情网站 | 国产三级av片 | 亚洲在线视频播放 | 国产精品高潮呻吟久久久 | 欧美日本日韩 | 一路向西在线看 | 欧美日韩国产精品一区二区三区 | 精品国产成人亚洲午夜福利 | 亚洲女人被黑人巨大进入 | 久久久视频在线 | 香蕉国产在线观看 | 狠狠插狠狠操 | 成人在线亚洲 | 蜜臀久久99精品久久久画质超高清 | 欧美 日韩 国产 在线观看 | 精品久久久视频 | 久久久久久草 | 国产精品成人一区 | 午夜成人影片 | 91欧美大片 | 国产精品免费久久久 | 国产成人综合视频 | 国产精品成久久久久三级 | 国产人伦精品一区二区三区 | 波多野结衣一区二区三区中文字幕 | 波多野结衣99 |