Qt layout manager

1. Existing problems Current GUI development mode: absolute positioning Specify the location and size of each component directly at the pixel level void QWidget::move(int x, int y) void QWidget::resize(int w, int h); Problem: the position and size of the component cannot adapt to the change of the parent window 2. Solution: Layout Manager Prov ...

Added by Jazzy Girl on Tue, 08 Feb 2022 20:43:03 +0200

Qt common wheel collection (with Demo)

Public wheels / API It mainly stores global variables, configuration variables, some public method codes, user-defined logs, and redirects the output of Qt compiler information to local files. Log Library It is built to use mvlog library, cross platform general library and simple singleton mode. At the same time, it can redirect and output ...

Added by bbxrider on Tue, 01 Feb 2022 16:01:21 +0200

PyQt5 learning notes - detailed explanation of QAbstractButton

QAbstractButton details 1, Description Base class for all button controlsProvide general functions of buttons Only by inheriting the abstract class and implementing the relevant methods can this class be used import sys from PyQt5.Qt import * # The use of abstract classes requires process implementation. All method overrides of abstract cl ...

Added by rachelk on Tue, 01 Feb 2022 13:47:49 +0200

Several installation methods of Qt under ubuntu

Several installation methods of Qt under ubuntu This article introduces a variety of installation methods, including apt package management system, binary package, source code, and online installation of Qt SDK and Qt Creator. apt Execute the following commands in sequence # Open the terminal, right click on the desktop - > open term ...

Added by rosegarden on Sun, 30 Jan 2022 20:30:52 +0200

Qt custom control ------ SwitchButton

brief introduction SwitchButton is a very common and practical button. I was surprised that there was no Switch in Qt, so I had to implement it myself. effect The renderings are shown below Control split 1, The control is generally composed of two parts, one is the background and the other is the white slider. The original background was ...

Added by markc1 on Sun, 30 Jan 2022 08:17:31 +0200

[QT/C + +] a video player based on A-SOUL element developed by QT (with source code)

preface   as a sophomore, the author wrote a software based on QT, but the teacher refused to let us design games (GaN!) After consulting the teacher, he said let me design a video player, so I watched the video and typed the code myself (because the teacher's teaching level was too poor)    to tell the truth, it was a litt ...

Added by plutoplanet on Sat, 29 Jan 2022 22:47:53 +0200

Read INI configuration file

preface . ini file is the abbreviation of Initialization File, i.e. Initialization File. It is the storage format adopted by the system configuration file of windows, which manages all configurations of windows. When developing programs, we often use ini files to configure software information. In particular, we need to display a large a ...

Added by stanleyg on Sat, 29 Jan 2022 11:44:54 +0200

Qt uses MVC and database singleton mode to realize login function

1, Briefly describe MVC and singleton mode 1. MVC design pattern Function: effectively separate data and user interface.Composition: model layer (representing data), view layer (representing user interface), control layer controller (defining user operations on the interface). 2. MVC frame diagram 3. Use MVC architecture to realize the pro ...

Added by rocket on Thu, 27 Jan 2022 12:59:03 +0200

Events in QT

catalogue 1. QT event 1.1 event introduction 1.2. Event handling 2. Keyboard events 2.1,keyPressEvent 2.1.1 judge whether a key is pressed 2.1.2 key combination operation 3. Mouse event 3.1. Mouse click event 3.2. Mouse release event 3.3. Double click event 3.4. Mouse movement events 3.5 roller events 4. Event filter 4.1. Use of ...

Added by Josepheuan on Wed, 26 Jan 2022 13:19:31 +0200

Student attendance system based on Qt design

1. Function introduction The current designed attendance system is mainly used by college teachers. During class, students enter the classroom, take out their student card and open their attendance. They can apply for leave in the system and view all class attendance information during school. Considering the large number of students in the w ...

Added by karimali831 on Wed, 26 Jan 2022 11:09:37 +0200