Simple implementation of an ES5 Vue Dialog plug-in

Calling the Dialog component of van t is very cool, so I want to implement one myself~ Because of project compatibility, ES6 is not used (1) The renderings are as follows: (2) Configurable parameters: icon, content, whether to disappear automatically, whether to display the bottom button area, and button callback function (3) Component code ...

Posted by nassertx on Wed, 29 Apr 2020 10:34:22 -0700

Custom Signal and Slot Function for QT

Signals and slots are a major innovation of QT. Custom signals and slots can achieve their desired functions. The standard signal and slot writing is as follows: connect(&button,&QPushButton::clicked,this,&QWidget::close); /* *Description of the connect ion signal and slot above * &butto ...

Posted by niki on Sun, 01 Mar 2020 17:58:22 -0800

Qt+vtk configuration property sheet

At first, when using Qt to display point cloud, every time a new project is created, the directory must be configured, which is very troublesome. Recently, I suddenly realized that I can create a new property sheet, and every time I refer to the property sheet, it's OK. It taught us to be flexible. 1. ...

Posted by Kingskin on Thu, 13 Feb 2020 22:46:35 -0800

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

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

Qt Write Custom Control 53 - Custom Wide and High Dropdown Box

I. Preface The default qcombobox control, if the content of the element item is too long to exceed the width of the control itself, will automatically be cut off and turned into an ellipsis display. Some application scenarios do not want to be an ellipsis display, as long as they want to be displayed. Another application scenario needs to set t ...

Posted by dbradbury on Wed, 18 Sep 2019 22:50:21 -0700

Qt Write Custom Control 48-Panel Form Control

1. Preface Many times you need a control that can replace the container control, automatically accommodate multiple widget s, adjust the width and height, and then provide scrollbar function, which necessarily requires the QScrollArea control, can set the spacing between subpanels, and so on. It is also used in many systems, such as temperature ...

Posted by Mercenary on Sun, 11 Aug 2019 13:53:20 -0700

Qt Writes Custom Control 46-Tree Navigation Bar

I. Preface Tree Navigation Bar Control is the most powerful and classic one among all the controls. Among many buyers, it is also the most frequently used because it has a large collection of display effects, such as left Icon + right arrow + front icon + various color settings, etc. It covers all the ...

Posted by mikeyca on Fri, 09 Aug 2019 00:11:37 -0700

Qt High Copy Excel Table Component - Supports frozen columns, frozen rows, content adaptation and merging cells

Catalog 1. Overview 2. Effect Display 3. Ideas for implementation 1. Freeze Rows, Freeze Columns 2. Row Height Adaptive 3. Ant Line 4. Test Code 1. Add tabular data 2. Set frozen rows and columns 3. Row Height, Column Width 4. Cell Background Color ...

Posted by Smackie on Wed, 31 Jul 2019 11:39:08 -0700