Super complete! Python graphical interface framework PyQt5 usage guide!

Super complete! Python graphical interface framework PyQt5 usage guide! Preface 1. Common GUI frameworks 2. Introduction to PyQt5 3. Installation of PyQt5 4. Qt Designer configuration 5. PyQt5 actual combat Foreword There are actually not many softwares that use Python to develop graphical interfaces. Compared with GUI interfaces, Web applications may be more popular. But […]

Solve ModuleNotFoundError: No module named PyQt5.sip

Table of Contents Solving ModuleNotFoundError: No module named ‘PyQt5.sip’ Problem Description problem causes Solution Method 1: Install the sip module of PyQt5 Method 2: Uninstall and reinstall PyQt5 Method 3: Check the Python environment and path Method 4: Update PyQt5 version Method 5: Check dependent libraries in conclusion Solution to ModuleNotFoundError: No module named ‘PyQt5.sip’ […]

Create a picture viewer application using PyQt5

Create an image viewer application using PyQt5 Author: Quiet to Silent Personal Homepage In this tutorial, we will create a simple image viewer application using the PyQt5 library. This application displays a series of images and allows users to switch and jump to different images with buttons. 1. Preparation First, we need to install the […]

[OpenCV-PyQt5-PyGame-imutils] Exploring image and video capture in Python: Performance Analysis and Selection Guide

Foreword As computer vision and multimedia applications continue to evolve, image and video capture is becoming increasingly important. In Python, there are a variety of libraries and tools to choose from for opening cameras, capturing images, and processing video streams. This article aims to provide readers with a comprehensive understanding of these capture methods and […]

[PyQt5 graphical interface programming (4)]: Interface development

Interface development need Development ideas development process QTreeWidget Create QTreeWidget (tree window) Create Item question 1. If the item text is too long, it will be incompletely displayed and ellipses will appear. develop 1. Get the row currently selected by the mouse and display the corresponding attributes. Quote PyQt5.QtWidgets.QFormLayout: Form layout QStackedWidget: stack form Vertical […]

QT5 WebCapture page scheduled screenshot tool

QT5 WebCapture web page scheduled screenshot tool 1. Set the startup time. The program will start taking screenshots of web pages after the startup time. 2. Set the page waiting time according to the page loading speed of the required screenshot, and try to wait until the page is loaded before taking the screenshot. 3. […]

python pyqt5 QTextEdit 2. Automatic completion of prompt words in text editing box, using QCompleter

1. Enter at least 2 characters to start the prompt, and press Enter to complete it automatically. 2. Not case sensitive 3. Use substitution to prevent completion case inconsistencies. renderings Code: 1. Rewrite QTextEdit and create TextEdit.py from PyQt5.QtCore import Qt, QStringListModel from PyQt5.QtGui import QTextCursor from PyQt5.QtWidgets import QTextEdit, QCompleter class TextEdit(QTextEdit): def __init__(self, […]

Qt5+Opencv plug-in development

Article directory 1. Plug-in introduction 2. Project introduction 3. Development process 3.1. Filter algorithm plug-in 3.2. Morphological algorithm plug-in 3.3. Implementation of main interface 4. Complete source code 5. Overall renderings 1. Plug-in introduction Plug-in (also known as addin, add-in, addon or add-on, also translated as plug-in) is a program written according to a certain […]

A preliminary exploration of PyQt5+Qt designer

In the previous article, we set up the development environment of PyQt5. When the iron is hot, we will give it a try based on the built environment. 1: Introduction to PyQt5 package module The main modules included in PyQt5 are as follows. QtCore module – covers the core non-GUI functions of the package. This […]