QT Basic Operations

First, QT is a cross-platform application framework of c++ GUI. Application Framework: When encapsulated class libraries need to use some functions, they can call the corresponding interfaces directly. II. Establishment of QT Project 1. New Project - > Application - > QT Widgets Application ...

Posted by bobthedog on Thu, 01 Aug 2019 11:15:58 +0200

PyQt5 Quick Start PyQt5 Database Operation

Quick Start for PyQt5 (8) PyQt5 database operations 1. SQLite database 1. Introduction to SQLite SQLite is a lightweight database that implements a self-contained, server-free, zero-configuration, transactional SQL database engine, mainly used as a database for mobile applications and small desktop applications.Official website:https://www.sql ...

Posted by dubrubru on Mon, 29 Jul 2019 01:11:47 +0200

Qt Writing Custom Control 36-Picture Browser

I. Preface This control is mainly used as a simple picture browser. It can turn pages up and down to display pictures. Pictures can also turn on excessive effects such as transparency gradient, application scenarios such as viewing alarm pictures and running pictures. This control is not my original, from the network, I just revised a lot of BU ...

Posted by Xianoth on Tue, 23 Jul 2019 17:05:30 +0200

Qt Writes Custom Control 33-Picture Switching Animation

I. Preface In many graphics software, when switching pictures, you can bring animation transition or switching effect, which is more human-oriented. In fact, it is mainly dazzling, such as shutters, transparency changes, lower left corner flying in, etc. No matter how many kinds of effects, the core is around QPainter to carry out the correspon ...

Posted by Duell on Sun, 21 Jul 2019 16:52:52 +0200

Using databases in QT s

When using the database, you need to view the list of drivers supported in the installed QT. Generally, you can view all the driver plug-in files in the plugins/sqldrivers folder in the QT installation directory. This is not the focus of this article, so I will not elaborate. The following should be added to the xxx.pro project file: QT ...

Posted by tuuga on Sun, 07 Jul 2019 01:59:53 +0200

MFC+VS2012+Image/Video+Function

Creating mfc with vs is easier than qt, but the interface is far less attractive. 0 Create Solutions 1 Configuration environment Add two files that need to use opencv http://download.csdn.net/detail/songzige/9477119 Add it to the header file and source file, respectively In... Add several include references to the.Dlg.h file: #include ...

Posted by Fari on Sun, 09 Jun 2019 21:23:15 +0200

C/C++ Variable Length Parameters to Realize log Output

_ VA_ARGS__macro Instructions #define qWiFiDebug(format, ...) qDebug("[WiFi] "format" File:%s, Line:%d, Function:%s", ##__VA_ARGS__, __FILE__, __LINE__ , __FUNCTION__); The macro above uses qDebug to output debugging information, printf in non-Qt programs, syslog in daemons and so on. The trick is actually these macros _________________ ...

Posted by lemming_ie on Fri, 31 May 2019 22:02:37 +0200

Qt Writes Custom Control 14-Ring Progress Bar

Preface Ring progress bar, used to show the current progress, in order to meet the needs of large screen UI customization, there used to be a ring progress bar, which can not meet the needs of the project, can only be re-customized, the previous progress interval can not be self-adaptive resolution, and the current progress corresponding to the ...

Posted by maliary on Sat, 18 May 2019 03:59:45 +0200

PyQt5 Learning Notes (05)--Event and signals

The code in this article comes from zetcode.com Events GUI applications are event-driven, and events are generated mainly by users. But events can also be generated through, for example, Internet links, window managers, or timers. When we enter the main loop of the program through the exec_() method, the main loop gets the ...

Posted by mark_h_uk on Fri, 17 May 2019 16:24:53 +0200

opencv-3.4.1 + qt-5.6.3 + vs2015 + cmake-3.11.1 Install opencv [Illustration]

1. Prepare: 1.cmake-3.11.1-win64-x64 https://cmake.org/files/v3.11/  2.qt-opensource-windows-x86-msvc2015-5.6.3  3.vs2015  4.opencv-3.4.1-vc14_vc15.exe   https://github.com/opencv/opencv/releases/tag/3.4.1 2. Install software: 1.cmake installation (unzip to use) 2.qt installation, also install WDB http://www.codemac ...

Posted by romanali on Fri, 10 May 2019 17:19:22 +0200