PyQt5, Garbage Classification Small Program-Executable File of Early Generation Window Program

It's another day. Today's mental journey: (1) How to connect the front end and the back end? (2) Back-end database insertion data (3) completely do not use the previous dictionary check method (4) Suddenly found that object-oriented programming is actually very useful, and even more addictive (5) QLineEdit, QInputDialog, QGridLayout (6) with cl ...

Posted by kilby on Tue, 04 Jun 2019 10:44:02 -0700

Teacher PHP hasn't taught you those knowledge points.

Another way of writing is surprising. When we read some source code, we find an alternative way of writing, such as //Abnormal writing if(false == $result) //Normal writing if($result == false) In fact, this is a very clever way of writing, it can largely eliminate the serious bug s caused by hand errors. If we miswrite = as = in the ...

Posted by dmcke5 on Sun, 02 Jun 2019 11:20:22 -0700

Qt Loading QSS File

Sketch New QSS file Writing QSS Loading QSS Realization principle More reference Sketch Styles are commonly used in Qt. In order to reduce coupling (separate from logical code), we usually define a QSS file, then write the styles of various components (such as QLable, QLineEdit, QPushButton), and finally use Q ...

Posted by wiccan8888 on Fri, 17 May 2019 10:40:49 -0700

Source Coding Qt5

Linux Mint Source Coding Qt5.8 Introduction Compile and install process Download source code To configure Installation of required tools Install xcb Libraries Install Multimedia Library configuration option Compile source code Configuring Qt paths Install qtCreator Introduction After Qt5.5, the official Qt has no 32- ...

Posted by stomlin on Wed, 15 May 2019 21:05:48 -0700

12 Qt Multithread Programming

Qt opens multithreading, mainly for the class QThread. There are two ways, the first is to inherit the QThread with a class, and then rewrite the virtual function run(). When you want to open a new thread, you just need to instantiate the class and then call the function start() to open a multithread. The second method is to in ...

Posted by carrotcake1029 on Sat, 11 May 2019 00:14:39 -0700

Writing window plug-in for QT and realizing the self-adaptation of call window

Catalog Preface Effect Writing dll Write main program summary Preface Recently, the plug-in architecture was encountered in the project, and several functional modules were written into dll for calling by the main program. This paper mainly implements such a function under the QT: Write a dll, which contains a QDialog ...

Posted by reversenorm on Thu, 09 May 2019 22:16:39 -0700

[Introduction to Python] 38. First GUI program

ABSTRACT: Teach you how to use Python's built-in Tkinter to create the first GUI program. Write on the front: In order to learn python better, bloggers record their learning journey. This learning note is based on Liao Xuefeng's Python Course If there is any infringement, please inform us to delete it. Welcome to study Python ...

Posted by bufke on Thu, 09 May 2019 14:30:38 -0700

SQL table model QSqlTable Model

QSqlTableModel The QSqlTableModel class provides an editable data model for a single database table. QSqlTableModel is a high-level interface for reading and writing database records from a single table. It is built on top of the lower-level QSqlQuery and can be used to provide data to view classes such as QTableView. Example: ...

Posted by gibs on Thu, 28 Mar 2019 14:39:29 -0700

Using PySide2 to develop Maya Plug-in Series I: QT Designer to design GUI, pyside-uic to convert. ui file to. py file

Preliminary preparation: Install python: https://www.python.org/downloads/ Install PySide2: After installing python, there is a / script folder in the installation directory with pip.exe, cmd execution: pip install PySide, pip install PySide2 (note: Python 2.x corresponds to PySide, Python 3.x corresponds to PySide2) Start the QT Designer: 1. S ...

Posted by mmitdnn on Tue, 22 Jan 2019 14:00:13 -0800

Database operation of QT

#include <QtSql> QT += sql QSqlDatabase Class implements the operation of database connection QSqlQuery Classes are used for execution SQL Sentence QSqlRecord Class encapsulates all records in the database //First: QSqlDatabase class QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); Use QSQLITE Database, QMYS ...

Posted by barryman9000 on Sat, 19 Jan 2019 23:30:12 -0800