QT: custom Model and related demo

Use background With the increase of development projects, the business structure is more and more complex. In order to improve the development efficiency of programmers and reduce the maintenance cost (code readability), using MVC (MVD) mode in QT is an effective method. Customizing the Model is the first step in using the MVC pattern. How t ...

Posted by karimali831 on Sat, 18 Apr 2020 16:51:39 +0200

Qt embedded Baidu map

Catalog Qt embedded Baidu map 1.WebEngineView declaration and definition 2. Use Baidu map JavaScript API 2.1. Register account, add application and obtain ak code 2.2. Set container style and create map container element 2.3. Initialize map and display 3.Qt calls Javascript function 4.Javascr ...

Posted by ducey on Wed, 12 Feb 2020 18:00:36 +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

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 Writes Custom Control 59-Histogram Dynamic Diagram

I. Preface Histogram is similar to the display of histogram when playing music. The top provides a horizontal line. When the column rises, the line rushes to the top in the form of a hat, which is equivalent to the feeling on the top of the column. It gives people a dynamic feeling. While listening to music, it is more pleasant to the eye. The ...

Posted by NuMan on Tue, 24 Sep 2019 08:51:13 +0200

Qt Writing Custom Control 57-Histogram Waveform

1. Preface Histogram control is not an original control. There are about 20-30 controls in the control range which are not original by themselves, but refer to the open source code on the Internet and tidy up and perfect themselves. The code of the plug-in has been added so that it can be integrated directly into QtDesigner or QtCreator.The mai ...

Posted by sri2002 on Sun, 22 Sep 2019 03:52:40 +0200

Qt Write Custom Control 50-Mini Dashboard

1. Preface This control is named Mini Dashboard because it can be reduced to a very small area display. It is very suitable for small area display of instrument data. It can also be manually touched to adjust the progress. It is one of the most beautiful and compact controls I personally think.The fir ...

Posted by petrosa on Tue, 13 Aug 2019 03:39:21 +0200

Data Acquisition of Wireless Barcode Gun Based on QT

Recent projects encountered the need to collect product barcode and two-dimensional code to save and display, and upload servers or enterprise ERP system, so for wireless and two-dimensional code scanner data acquisition test.The javelin itself is an input device, similar to keyboard input. Bar codes are ASCII characters, and the last character ...

Posted by henry gayman on Mon, 05 Aug 2019 11:15:31 +0200

OpenCV Image Processing-Mat Object Common Method

OpenCV Image Processing-Mat Object Common Method Preface Mat object and IplImage object Common constructors for Mat objects Common Methods of Mat Objects Preface The environment used in this article is: Qt5.11 + OpenCV3.4.6 Environment Installation Reference Document: https://blog.csdn.net/z6348 ...

Posted by pwnuspoints on Tue, 30 Jul 2019 06:28:17 +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