Hello PyQt5PyQt5 signal slot mechanism

1, Introduction to signal slot mechanism 1. Introduction to signal slot Signal slot is the core mechanism of Qt and the communication mechanism of objects in PyQt programming. In Qt, QObject object and all controls inherited from QWidget in PyQt support signal slot mechanism. When the signal is transmitted, the connected slot function will be ...

Posted by ppatwari on Thu, 24 Feb 2022 17:28:31 +0100

Hello PyQt5PyQt5 basic window components

1, QMainWindow 1. Introduction to window types QMainWindow, QWidget and QDialog are used to create windows. They can be used directly or derived. QMainWindow window includes menu bar, toolbar, status bar, title bar, etc. it is the most common window form. QDialog is the base class of dialog window. It is mainly used to perform short-term ta ...

Posted by SyWill on Thu, 24 Feb 2022 17:26:53 +0100

Hello PyQt5PyQt5 extension

1, PyQt5 project release 1. Introduction to PyInstaller PyInstaller is a free and easy-to-use packaging tool that supports Windows, Linux, MacOS, and 32-bit and 64 bit systems. http://www.pyinstaller.org/ PyInstaller installation: pip install pyinstaller 2. PyInstaller uses PyInstaller uses the following commands: pyinstaller yourprogra ...

Posted by ThatGuyBob on Thu, 24 Feb 2022 17:26:14 +0100

Interaction between pyqt5 qimage, QPixmap, Opencv, QLabel and Matplotlib

preface Early methods for image rotation were: cv2.imread() reads the imagenumpy rotating imageSave the rotated image CV2 Imwrite() and read the image again Because of the basic operation of images, I am a little white and have never touched anything. Therefore, the early idea is like this. This method is simple and clear, but ...

Posted by ropic on Thu, 10 Feb 2022 10:41:02 +0100

PyQt5 learning notes - QWidget learning

QWidget details 1, Description Base class for all visual controls Is the simplest blank control Control is the smallest element of the user interface Accept various events, mouse, keyboard Draw on the desktop and show it to users Each control is rectangular, and they are sorted in Z-axis order Control is cut by its parent control and the ...

Posted by vidhu on Sat, 29 Jan 2022 14:44:59 +0100

Project demo - PyQt5 simple Sketchpad program

previously on Recently, I was watching reinforcement learning and wanted to quickly make a visualization of MDP. The main body is a drawing board, similar to visio, and then I can run RL algorithm in real time to see the change of valueBut the problem is, my visualization tool will use a PyQt5, or the level of half a bottle of water... So ...

Posted by php_joe on Mon, 17 Jan 2022 10:57:49 +0100

PyQt5 learning notes - program structure analysis

1, Briefly introduce some controls Official document: '‘ https://doc.qt.io/qtforpython/modules.html ’’’ QtWidgets: contains a complete set of UI element controls, which are used to establish an interface in line with the system styleQtGui: covers a variety of basic graphics functions, such as font, graphics, icon a ...

Posted by phpscriptcoder on Sat, 15 Jan 2022 11:59:41 +0100

Chapter 33 audio and video

If you can add a prompt tone to the button in the application, the user will feel better every time he clicks the button, and the program will look more likable. If you want to play games, you have higher requirements for sound. Of course, it is not only sound, but also the function of video playback is occasionally needed in the program. PyQt5 ...

Posted by robinstott on Thu, 06 Jan 2022 03:20:14 +0100

Chapter 35 network application

PyQt5 provides QUdpSocket and QTcpSocket classes to implement UDP and TCP transmission protocols respectively. Both protocols can be used to create network client and server applications. The former (UDP) sends data from one host to another in the form of packets. It is only responsible for sending, but does not care whether the sending is succ ...

Posted by phychion on Thu, 06 Jan 2022 02:10:51 +0100

Chapter 34 graphic view framework

In previous chapters, the author generally used QLabel control to display pictures. But what if you want to use a lot of pictures? Do you want to instantiate many QLabel controls to display them one by one? How to manage it? Of course, we can't do such a thing with QLabel control, otherwise it will be very troublesome and chaotic. The graphical ...

Posted by BlackViperSJM on Thu, 06 Jan 2022 02:04:38 +0100