Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for generating a composite control with an independent rendering layer, a system and a medium

A composite control and generation system technology, which is applied in software engineering design, instrumentation, electrical digital data processing, etc., can solve problems such as dynamic effects that do not have self-defined self-controllability, and achieve the effect of convenient display and flexible control

Active Publication Date: 2019-03-08
上海金大师网络科技有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Simple color matching can be achieved through the control background and foreground color settings provided by QT, and simple dynamic effects are provided for controls such as buttons such as hover (mouse hovering), checked / selected (mouse click to select), and the background color can be changed. But it does not have custom self-controllable dynamic effects

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for generating a composite control with an independent rendering layer, a system and a medium
  • A method for generating a composite control with an independent rendering layer, a system and a medium
  • A method for generating a composite control with an independent rendering layer, a system and a medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0112] The realization of this compound control is divided into three layers: bottom layer, middle layer and top layer. layout control. The specific implementation steps are as follows:

[0113] 1. First design the underlying control of the composite control. The underlying control can be QLabel, QWidget, QPushButton, etc. Qt original control or custom control that can design the layout. It is the base of the entire control, and the position, size, shape, and background of the control are defined in turn. , and the background when responding to mouse and keyboard events, .

[0114] 2. Add a row or column layout to the parent control and set the outer margin of the layout to zero. At the same time, add QWidget or its child controls to the layout as a middle-level control (dynamic rendering layer).

[0115] 3. Design the middle-level control. The middle-level control (that is, the dynamic rendering layer) is used for more complex rendering of the background of the entire contr...

Embodiment 2

[0120] Such as figure 1 , figure 2 As shown, a certain client software for PC requires the user to display the data changes to the user in a richer and clearer way

[0121] A) When the stock price moves upwards in real time, the background is a red gradient, and when the stock is moving downwards in real time, the background is a green gradient. At this time, the background color of the compound control is the original background color (controlled by the parent control) and the superimposed gradient color (controlled by the parent control) Dynamic Render Layer Control).

[0122] B) When the stock is in the selected state, the background is the background of the selected state. When the price changes, the background color is superimposed with the gradient color. At this time, the background color of the compound control is the background color of the selected state (controlled by the parent control) superimposed with the gradient color (rendered dynamically level control). ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for generating a composite control with an independent rendering layer, a system and a medium. The method comprises a bottom control generation step of generating a bottom control of the composite control; a dynamic rendering layer generation step of generating a dynamic rendering layer of a composite control; a top-level control generation step of generating top-level control of a composite control; a dynamic rendering layer adding step of adding the dynamic rendering layer on a bottom control; a top-level control adding step of adding the top-level control ona dynamic rendering layer; a dynamic rendering layer control step of controlling the dynamic rendering layer during the running of the composite control. On the basis of the QT basic control, a layerof special control is inserted between parent control and child control for dynamic background rendering, that is, dynamic rendering layer. By controlling the color of the dynamic rendering layer, thetransparency changes and is organically integrated into the composite control, so that the control is displayed with more rich colors, and is independent of the color and transparency control of theoriginal parent and child controls.

Description

technical field [0001] The invention relates to the field of graphical user interface programming, in particular to a method, system and medium for generating a compound control with an independent rendering layer. Background technique [0002] QT provides basic window controls, such as QWidget, QLabel, QPushButton, etc., basic coloring functions such as QStyle, QPalette, etc., and QTimer for timing control. Simple color matching can be achieved through the control background and foreground color settings provided by QT, and simple dynamic effects are provided for controls such as buttons such as hover (mouse hovering), checked / selected (mouse click to select), and the background color can be changed. But it does not have custom self-controllable dynamic effects. [0003] In the prior art, a child control structure is added to the parent control. The parent control is used as the bottom control, and multiple child controls are used as the top-level controls to form a compos...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 王玲罗茂李学江
Owner 上海金大师网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products