Qt Writing Gas Safety Management System 3-User Module

1. Preface From this article, write specific functional modules one by one. User modules mainly have four aspects: user login, user exit, user management, rights control.Here, you can follow simple and common practice, such as user login interface, provide a drop-down box to select the user name, then enter the password, password box cipher tex ...

Posted by ratebuster on Mon, 11 Nov 2019 08:48:27 +0100

MD5 tool development (QT programming)

MD5 tool development MD5 message digest algorithm, a widely used cryptographic hash function, can generate a 128 bit (16 byte) hash value to ensure the integrity and consistency of information transmission. MD5 was designed by Ronald Linn Rivest, an American cryptographer, and was released in 1992 to replace MD4 algo ...

Posted by Cardale on Thu, 07 Nov 2019 17:34:43 +0100

The use of Java regular expression

The java.util.regex package mainly includes the following three classes:   Pattern class:   The Pattern object is a compiled representation of a regular expression. The Pattern class does not have a common constructor. To create a Pattern object, you must first call its public static compilation method, which returns a Pattern object. This ...

Posted by nadz on Sun, 03 Nov 2019 09:50:12 +0100

QT5 docking window with various controls

Docking window can be a convenient and fast management interface, which can make users feel the convenient operation of the application. But the docked window itself is a badge, and it can't add and arrange the controls on its own. This paper provides a simple method to add controls to docked wi ...

Posted by ace21 on Fri, 01 Nov 2019 13:54:18 +0100

Picture browser of Qt Quick QMl learning notes

Qt Quick module is a standard library for writing QML applications. While the Qt QML module provides the QML engine and language infrastructure, the Qt Quick module provides all the basic types needed to create a user interface using QML. It provides a visual canvas, including types for creating and animating visual components, receiving user i ...

Posted by morphy@6deex on Thu, 31 Oct 2019 08:12:06 +0100

Qt Writes Custom Control 69 - Line Number Statistics

I. Preface Code line count is mainly used to count the number of code lines of all files in the project, including blank lines, comment lines, code lines. You can specify filter extensions, such as files that only want to count. cpp, you can also specify files or directories for statistics. The first thing to do after writing this tool is to co ...

Posted by cwetherbee on Mon, 14 Oct 2019 03:51:28 +0200

Using Qt to Grab Desktop and Mouse under windows

Can make Qt under grabWindow(WId window, int x = 0, int y = 0, int width = -1, int height = -1) Create and return a QPixmap by grabbing the contents of a given window (x, y, width, height).   The parameters (x, y) specify the offset in the window, and (width, height) specify the area to be cop ...

Posted by the-Jerry on Thu, 10 Oct 2019 07:36:15 +0200

Qt Drag-and-Drop Assistant Class-Simplified Drag-and-Drop Programming for Qt Controls

Because drag-and-drop functions are often used in Qt programs, many examples on the Internet directly rewrite two virtual functions of this kind: protected:     virtual void dragEnterEvent(QDragEnterEvent *event) override;     virtual void dropEvent(QDropEvent *event) override; However, each contro ...

Posted by bmcewan on Sat, 05 Oct 2019 03:19:23 +0200

Qt Writing Custom Control 60-Sound Waveform Diagram

I. Preface This control originates from a music player. When writing the music player, it needs to convert the audio data into corresponding spectrum display. The third-party library of Fmod is used to process it (fmod sound system is a revolutionary audio engine for game developers, very powerful and ...

Posted by aspbyte on Wed, 25 Sep 2019 05:14:23 +0200

Qt Learning: Sharing data between threads (using a signal slot to pass data, you must register parameter types ahead of time using qRegisterMetaType)

There are two main ways to share data between Qt threads: Use shared memory.Even with a variable that both threads can share (such as a global variable), both threads can access and modify the variable to share data. Use the singal/slot mechanism to transfer data from one thread to another. The first i ...

Posted by Ionisis on Wed, 25 Sep 2019 04:51:50 +0200