Drawing using GDI and QT
Basic geometric drawing steps:
Create brush: default color BLACK
CreatePen(...)
Create brush: the default brush color is NULL
CreateSolidBrush(...)
CreateHatchBrush(...) Shadow brush
CreatePatternBrush(...) Not commonly used
Pick up ...
Posted by lmaster on Tue, 25 Jan 2022 15:35:42 +0100
Qt music player
Qt music player
summary
Imitating the Netease cloud music mobile phone interface, the music player implemented by Qt Creator 4.9.0 (Enterprise) has the main functions of switching songs, previous and next, pausing, playing, switching lyrics display, and music playing mode, including (list order, single song cycle, random play), as well as d ...
Posted by sarun on Tue, 25 Jan 2022 13:26:53 +0100
C + + standard - C++17 features - file system - path processing
type
The object of path represents the path on the file system. Only the syntax appearance of the path is handled:
The pathname may represent a path that does not exist, or even a path that is not allowed to exist on the current file system or operating system.
Path names have the following syntax:
Root name (optional): identifies a file ...
Posted by kidd1270 on Tue, 25 Jan 2022 12:00:47 +0100
Thinking in C + +: STL algorithm
Thinking in C + + > STL algorithm summary notes.
STL algorithm directory
0. Algorithm overview
fill(), assign value to each element of [first, last].fill_n(), n elements starting from first are assigned value.generate(), use the generator to generate a value for each element of [first, last].generate_n() generates a value for the n el ...
Posted by Gayner on Tue, 25 Jan 2022 07:28:40 +0100
C + + function definition and calling procedure
When you create a function, you must write its definition. All function definitions include the following components:
Name: each function must have a name. In general, the same rules that apply to variable names apply to function names.
Formal parameter list: the program module calling the function can send data to it. A formal parameter list ...
Posted by galewis on Tue, 25 Jan 2022 04:22:37 +0100
Qt actual combat case (30) -- using QUdpSocket class to realize UDP network broadcast communication
1, Project introduction
UDP network broadcast communication is realized by using QUdpSocket class. Its principle is shown in the figure below. The working principle of UDP is: the UDP client sends a certain length of request message to the UDP server. The message size limit is related to the protocol implementation of each system, but it ...
Posted by RandomEngy on Tue, 25 Jan 2022 04:17:25 +0100
[stetch cup · Cloud Bridge · algorithm training camp] week 3
1. Fibonacci sequence Title Description Fibonacci numbers are usually represented by F(n), and the sequence formed is called Fibonacci sequence. The sequence starts with 1 and 1, and each subsequent number is the sum of the first two numbers. That is:
F(0) = 1,F(1) = 1 F(n) = F(n - 1) + F(n - 2), where n > 1 Here you are n, please calculat ...
Posted by cap2cap10 on Tue, 25 Jan 2022 03:11:20 +0100
Add of Cmake command_ subdirectory
1, Introduction
This command is to add a subdirectory and build the subdirectory. The command format is
add_subdirectory (source_dir [binary_dir] [EXCLUDE_FROM_ALL])
Command parsing
source_dirRequired parameter. This parameter specifies a subdirectory that should contain cmakelists Txt file and code file. The subdirectory can be a relative ...
Posted by astoller on Tue, 25 Jan 2022 02:51:59 +0100
Title: weight conversion
Weight conversion
Title Description
At present, the most basic unit of international weight is gram. In ancient times, the weight units of various countries were different.
China uses Jin, Liang and money to express weight, where 1 jin = 10 Liang and 1 liang = 10 money
The relationship between Chinese weight unit and gram is: 1 jin = 500g, ...
Posted by Shaudh on Tue, 25 Jan 2022 02:22:58 +0100
Structure - who won the most scholarships?
Don't say anything else, give me the scholarship first
analysis
Understanding: we can understand it as a template, but at the same time, we can regard it as a user-defined type, just like int, short and char. The class we learned later is actually very similar in structure to struct.
Struct is a keyword, and the structure name after struct i ...
Posted by rubio on Tue, 25 Jan 2022 00:07:26 +0100