QtDesigner design IV (The QResource System)

The QResource System Writing an application requires not only code, but also a lot of icons in the interface. Your application will even load data and so on.The dispersion of application data files is a common cause of this problem. If the data file you reference has a path, your application will only work if the correct path is given. But ...

Added by bmw57 on Sun, 20 Feb 2022 18:02:45 +0200

PyQt5 learning notes - detailed explanation of QAbstractButton

QAbstractButton details 1, Description Base class for all button controlsProvide general functions of buttons Only by inheriting the abstract class and implementing the relevant methods can this class be used import sys from PyQt5.Qt import * # The use of abstract classes requires process implementation. All method overrides of abstract cl ...

Added by rachelk on Tue, 01 Feb 2022 13:47:49 +0200

PyQt advanced interface control and operation

   through the description in the previous sections, I believe that the little partner has a more detailed understanding of the application of PyQt. It is estimated that there is no problem in completing a simple application now. Is that enough? Of course not, leaving aside the complex layout, because this part is implemented by t ...

Added by viko20 on Thu, 27 Jan 2022 06:24:03 +0200

Course design of data structure and algorithm -- Huffman coding

1, Title Huffman codec 2, Experimental purpose Master Huffman coding principle.Master the generation method of Huffman tree.Understand the implementation of data coding, compression and decoding output coding. 3, Demand analysis Initialization. Read the character set size n, n characters and N weights from the terminal, establish the Huffm ...

Added by IRON FART on Sun, 23 Jan 2022 21:02:07 +0200

Chapter 30 web page interaction QWebEngineView

If you need to load and display web pages in the program, QWebEngineView is definitely the best choice. The control is based on the Chrome browser kernel engine, and the functions and methods provided are relatively powerful. **Note: * * V5 QWebEngineView is not included in PyQt5 version 11 and later. Please download it separately: pip instal ...

Added by suspect on Thu, 06 Jan 2022 03:57:51 +0200

Chapter 21 scroll area QScrollArea and scroll bar QScrollBar

Imagine if you used 100 buttons in your program, would you choose to display all 100 buttons on the interface at the same time? Of course not, otherwise the interface will be crowded. We can put these 100 buttons in a scroll area QScrollArea. Users can only see a few buttons at first, but the scroll bar allows them to operate the rest of the bu ...

Added by thekidscareya on Thu, 06 Jan 2022 03:32:30 +0200

Chapter 25 Pyinstaller packaging

What if the written program is sent to others for use, but the other party does not install the python environment or PyQt5 library? The best solution is to package the program into executable files, so that it can be used even on a computer without Python environment and PyQt5 library. It is very convenient. Note: after reading this chapte ...

Added by davestevens_uk on Thu, 06 Jan 2022 03:27:18 +0200

Chapter 19 list control, tree control and table control

The list control allows us to present the content in the form of a list, making the interface more orderly and beautiful. The QListWidget list control should be used together with the QListWidget item, which is added to the list control as an item, that is, each item in the list control is a QListWidget item. This is why we say that QListWidget ...

Added by lucym on Thu, 06 Jan 2022 03:16:07 +0200

Python White's topic report - OpenCV matting project practice

Python Xiaobai's topic report - actual combat of OpenCV matting project (5) This series is Python Xiaobai's task "image segmentation and matting based on OpenCV". It should be noted that this series is not a matting project tutorial of OpenCV, but a topic report on this topic. It includes a relatively complete PyQt project. From t ...

Added by mattison on Thu, 06 Jan 2022 02:45:46 +0200

About QThreadPool cleaning in Qt

Recently, I learned PyQt5 programming and encountered a problem, which is the cleaning of QThreadPool. Specifically, I sometimes need to stop the execution of all threads in a QThreadPool and do the necessary cleaning. Sometimes there are two main scenarios here: because the new input QThreadPool needs to be cleaned up and start with the new in ...

Added by techker on Mon, 27 Dec 2021 11:06:44 +0200