Learn from scratch about the configuration environment variables of dockerdocker

In the previous section, we introduced the deployment of a complex docker process. A command option - e is involved. The purpose of this command is to pass environment variables. Next I'll show you how it works. First, create a container and set the environment variable VINCENT=vincent@qq.com docker run -d --name test1 -e VINCENT=vincent@qq.c ...

Posted by aladin13 on Sun, 03 Nov 2019 05:27:20 -0800

QCustomplot drawing chart with sharing - multi function cursor

Catalog I. overview II. Renderings III. source code explanation 1. Source code structure 2. Header file 3. Add cursor 4. Monitoring movement 5. Move cursor 6. Other functions IV. test method 1. Test project 2. Test documents 3. Test co ...

Posted by burningkamikaze on Sat, 26 Oct 2019 13:07:47 -0700

[GC9-5]: add startup screen to my program (trigger compilation warning)

In our [GC9-2], pro has an instruction, as follows Defines + = QT  predicted  warnings  defines compilation options The meaning of this is as follows   This is when I use QTest, the original usage is to add CONFIG += qtestlib Display his prompt that I need to use the following QT += testl ...

Posted by cortez on Sat, 19 Oct 2019 11:40:52 -0700

Qt writing custom control 72 prompt progress bar

I. Preface In many installation packages, in the installation process, we can often see a beautiful progress bar at the bottom, which is suspended to display the corresponding progress, and then the bottom progress is displayed in a variety of color gradients. The progress bar provided by Qt or the progress bar style of the operating system is ...

Posted by chacha102 on Wed, 16 Oct 2019 18:56:43 -0700

Qt5: QSplitter window splitter

Our goal is to design a simple example of using splitters, following the interface of the Qt editor. Each window can change its size by mouse. The effect is shown in the figure above.   Using Designer to Realize 1. Open the Qt creator editor, create a new Qt Widgets Application project, select ...

Posted by gutogouveia on Sun, 13 Oct 2019 09:31:27 -0700

Qt Writing Custom Control 67 - Universal Borderless

I. Preface In a previous article, I wrote about a generic mobile control, which is used to pass in any widget control and move freely in the parent container. This article is about a general borderless class, which does not exactly mean that the control should be called a component. The control is something to see and has drawing requirements, ...

Posted by Soccerplayer1316 on Fri, 11 Oct 2019 18:52:13 -0700

Qt Writes Custom Control 65-Halo Calendar

I. Preface Operating system update iteration speed is very fast, basically three or five years have a new version, WIN10 operating system is still a relatively successful system, it is said that now the market share is growing, XP share has been small, WIN7 share is gradually decreasing, in the latest WIN10 system, the lower right corner has a ...

Posted by stanleycwb on Wed, 09 Oct 2019 21:23:17 -0700

Traversal performance comparison of QVector and vector in qt and QMap and map

The use of containers in Qt brings great convenience to C++ development, and some member functions extended by containers such as QVector and QMap are also very convenient. But how efficient are Qt's containers compared with STL's? I've just written a few simple traversal examples to test the more ef ...

Posted by Dragoon1 on Sat, 05 Oct 2019 03:35:06 -0700

Loading different fonts in QML

Note by FontLoader FontLoader can load fonts by name, local path, and network url path. //Load fonts installed by the system by name FontLoader { id: fixedFont; name: "Courier" } //Load a local font file FontLoader { id: localFont; source: "content/fonts/tarzeau_ocr_a.ttf" } //Loading fonts on netw ...

Posted by leocon on Sat, 05 Oct 2019 00:29:36 -0700

The Simple Use of QT hread

Description of the use of QThread: The thread class of QThread is already encapsulated. If you want to use threads, you can derive subclasses and implement the thread interface function run (run is the thread task function). Next, we use the QThread to achieve the acquisition of the current system t ...

Posted by SyndicatE on Mon, 30 Sep 2019 09:54:21 -0700