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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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). ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com