Device and method for three-dimensional graphics rendering

By creating an Alien clone for each Native control and synchronous processing, the compatibility issues of Native and Alien controls in Qt interface layout management are solved, and the normal layout management and efficient drawing performance of three-dimensional graphics controls are achieved.

CN111857671BActive Publication Date: 2024-11-29BEIJING GENGTU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010751458.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-30
Publication Date
2024-11-29
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

The existing Qt interface layout management mechanism cannot effectively manage the existence of both Native and Alien controls, resulting in the misalignment of the control position, and attempts to convert all Alien controls to Native controls have increased system resource usage, or reduced 3D graphics drawing through off-screen rendering. performance.

Method used

Create an Alien clone for each Native control, and set it to synchronize with the native control in size and position. It cooperates with other Alien controls to accept Qt layout management. It monitors and handles position change events through event filters to ensure the position of Native controls. and size are consistent with the Alien clone.

Benefits of technology

It realizes the normal interface layout management of three-dimensional graphics controls when Native and Alien controls exist simultaneously, keeps the drawing performance unaffected and the control position is correctly synchronized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111857671B_ABST
    Figure CN111857671B_ABST
Patent Text Reader

Abstract

The present invention relates to a device and method for drawing large-scale three-dimensional graphics, and in particular to a device and method for providing an interface layout for a three-dimensional graphic control of a software interface. The present invention provides a method for drawing three-dimensional graphics, comprising the following steps: using native controls of the Qt platform to draw three-dimensional graphics; creating a non-native (Alien) control clone for each native control; setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in size and position; the non-native clone of the native control cooperates with other non-native controls, accepts Qt layout management, and completes three-dimensional graphics drawing. By utilizing the device and method of the present invention, normal Qt interface layout management can be performed in the process of drawing three-dimensional graphics, and the Native control used for drawing complex three-dimensional graphics can also be normally managed by Qt interface layout like a general Alien control, and the drawing performance is not affected, so that both can be taken into account.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a device and method for drawing large three-dimensional graphics, and in particular to a device and method for providing an interface layout for a three-dimensional graphic control of a software interface. Background Art

[0002] Drawing 3D graphics In the process of engineering design and drawing, 3D graphics are used more and more widely. In the engineering field, virtual manufacturing technology, process numerical simulation and simulation technology are all based on 3D graphics.

[0003] In the operating system, native controls refer to a type of control that occupies the operating system window handle. This type of control has an independent memory drawing area and is unrelated to the drawing of other controls.

[0004] Qt's interface design uses the Layout function. The so-called layout is the arrangement of components on the interface. Using the layout, components can be distributed regularly and automatically adjust their size and relative position as the window size changes.

[0005] In order to optimize performance, Qt has designed a class of non-native ("Alien") controls that do not occupy the operating system window handle. This type of control does not occupy the operating system window handle alone, but shares a memory drawing area with other controls of the same type, and all controls are drawn to the screen synchronously. This is the default control implementation method in Qt, and it is also a modern interface control implementation method.

[0006] However, for 3D graphics controls, since they need to meet their complex 3D graphics drawing requirements (different from the 2D drawing of simple controls such as general buttons and tool panels), they are usually Native controls. Qt provides the QLayout class for layout management, which can solve the problem that when the position of a certain control is modified, other controls also need to be adjusted. Commonly used layout management methods include QVBoxLayout, QHBoxLayout, QFormLayout, and QGridLayout. In addition, Qt also provides a separator (QSplitter) control layout management method to support interactive and free adjustment of the size of each part of the layout. However, none of the above layout management methods can correctly manage the situation where both Native and Alien controls exist at the same time, resulting in confusion of control positions.

[0007] Currently, the solution provided by Qt for the above problem is to convert all Alien controls in the interface into Native controls. The disadvantage of this approach is that each control, large or small, occupies the operating system window handle, increasing system resource usage and drawing costs.

[0008] Another method is not to apply for an independent drawing area for the 3D graphics control, but to transfer the 3D graphics drawing results in the GPU back to the memory through off-screen rendering and then draw them together with the Alien control. The disadvantage of this method is that it has an additional process of transferring the drawing results back and forth between the video memory and the memory, which reduces the drawing performance of the 3D graphics.

[0009] Therefore, there is a need for a device and method that allows the Qt interface layout management mechanism to work properly when Native controls and Alien controls appear at the same time, so that the drawing performance of the 3D graphics control is not affected, while it can behave like an ordinary control and be subject to normal interface layout management. Summary of the invention

[0010] The present invention provides a device and method for drawing three-dimensional graphics, and in particular relates to a device and method for providing an interface layout for a three-dimensional graphic control of a software interface.

[0011] The present invention provides a method for drawing three-dimensional graphics, comprising the following steps: using native controls of a Qt platform to draw three-dimensional graphics; creating a non-native control clone for each native control; setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in size and position; the non-native clone of the native control cooperates with other non-native controls, accepts Qt layout management, and completes three-dimensional graphics drawing.

[0012] In one aspect of the present invention, in the step of setting the non-native control clone so that the non-native clone of the native control is synchronized in size with the native control, when the size of the non-native control clone changes, the size of the native control is also set to the size of the clone.

[0013] In another aspect of the present invention, in the step of setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in position, when the position of the non-native control clone (105) relative to the parent node of the native control (101) changes, the native control (101) is set to the same position as the non-native control clone (105).

[0014] In another aspect of the present invention, the step of setting the non-native control clone so that the non-native clone of the native control is synchronized with the native control in position also includes: setting a Qt event filter (205) for monitoring the non-native control clone (105) and all its non-native control ancestor nodes, and performing different processing on different events: for position change events (QEvent::Move): synchronously setting the position of the native control (101); for parent node about to change events (QEvent::ParentAboutToChange): disassociating all non-native control ancestor nodes from the event filter (205); for parent node changed events (QEvent::ParentChange): associating all new non-native control ancestor nodes with the event filter (205).

[0015] The present invention also provides a device for drawing three-dimensional graphics, comprising the following devices: a drawing module, which uses the native controls of the Qt platform to draw three-dimensional graphics; a clone creation module, which creates a non-native control clone for each native control; a synchronization module, which sets the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in size and position; and a coordination module, in which the non-native clone of the native control cooperates with other non-native controls, accepts Qt layout management, and completes three-dimensional graphics drawing.

[0016] Another aspect of the present invention provides a method for Qt interface layout, comprising the following steps: creating a non-native control clone for each native control; setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in size and position; the non-native clone of the native control cooperates with other non-native controls to complete Qt interface management.

[0017] By utilizing the device and method of the present invention, normal Qt interface layout management can be performed during the process of drawing three-dimensional graphics. After applying this technology, Native controls used for drawing complex three-dimensional graphics can also be normally managed by Qt interface layout like general Alien controls, and the drawing performance is not affected, so that both can be taken into account. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some examples of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying innovative work.

[0019] Figure 1A schematic diagram of a parent control of a Native control and its Alien clone in a three-dimensional rendering device of the present invention;

[0020] Figure 2 A schematic diagram of the steps for achieving position synchronization in the three-dimensional rendering method of the present invention;

[0021] Figure 3 is a flow chart of the three-dimensional rendering method of the present invention;

[0022] Figure 4 Schematically shows a block diagram of a server for executing the method according to the present invention;

[0023] Figure 5 Schematically shows a storage unit for holding or carrying a program code for implementing the method according to the present invention;

[0024] Figure 6 A schematic diagram of the interface layout of an example of the three-dimensional drawing method of the present invention. DETAILED DESCRIPTION

[0025] Set forth below are what are currently considered to be the preferred embodiments or best representative examples of the claimed invention. Future and present representations or modifications of the embodiments and preferred embodiments are carefully contemplated, and any changes or modifications that make substantial changes in function, purpose, structure, or results are intended to be covered by the claims of this patent. Preferred embodiments of the invention will now be described by way of example only with reference to the accompanying drawings.

[0026] Before describing the embodiments of the present invention, several nouns appearing in the text are explained:

[0027] Qt: is a cross-platform application and UI development framework. Using Qt, you only need to develop applications once, without rewriting the source code, and then deploy these applications across different desktop and embedded operating systems.

[0028] Qt interface layout management: The layout management of the interface mainly involves the neat arrangement of components in the interface or making the interface adapt to the size changes of the window. One solution is the layout manager QLayout. The layout manager can perform layout management based on the interface components: (1) It can automatically arrange the interface components in the window; (2) It can automatically update the size of the interface after the window changes. Another solution is the splitter QSplitter, which supports the interactive way to freely adjust the size of each part of the layout.

[0029] Control: A unit on the interface that can be used to enter and display certain information, such as a text input box, a drop-down selection box, a reference box, a radio button, etc.

[0030] Native controls: refers to a type of control that occupies the operating system window handle. This type of control has an independent memory drawing area and is unrelated to the drawing of other controls.

[0031] Non-native (Alien) controls: Alien controls are an implementation of Direct UI design by Qt, and are also general (or ordinary, default, or default) controls in Qt. In order to optimize performance, Qt has designed a class of (Alien) controls that do not occupy the operating system window handle. This type of control does not occupy the operating system window handle alone, but shares a memory drawing area with other controls of the same type, and all controls are drawn to the screen synchronously. This is the default control implementation method in Qt, and it is also a modern interface control implementation method.

[0032] The present invention proposes a device and method for providing interface layout for a three-dimensional graphic control of a software interface, so that the Qt interface layout management mechanism can work normally even when both Native and Alien controls appear, so that the drawing performance of the complex three-dimensional graphic control is not affected, and it can behave like a general control and be subject to normal interface layout management. In the process of laying out the interface, parameters are configured according to the actual design situation and requirements, and the configuration parameters can be shown in Table 1 below:

[0033] Parameter name Parameter Description QWidget Controls in Qt are divided into Native controls and Alien controls parentWidget Parent Control nativeParentWidget Controls of the same Native class in the ancestor node alienWidget Alien Controls nativeWidget Native Controls QEvent::ParentAboutToChange Parent node is about to change event QEvent::ParentChange Parent node changed event QEvent::Move Position change events

[0034] QWidget has Native widgets and Alien widgets. Users can define whether a QWidget is Native or Alien. The former has a handle, while the latter shares the handle of its parent or other ancestor.

[0035] The present invention analyzes the tree parent-child node relationship between the Native control and the Alien control, creates an Alien clone for the Native control that actually draws the three-dimensional graphics, allows the Qt layout management mechanism to only manage the Alien clone, and uses the Qt event mechanism to synchronize the position and size between the Alien clone and the actual Native control.

[0036] The present invention creates an Alien clone for each Native control. In one embodiment, the Alien clone is a QWidget created in Qt and used as a substitute for the Native control in Qt layout management. The Alien clone cooperates with other Alien controls, accepts Qt layout management, and makes corresponding processing when its position and size change, while the drawing of the control content and the processing of user interaction events are the responsibility of the Native control itself.

[0037] In one embodiment, the size and position of the Alien clone of the Native control are synchronized. In the synchronization process of the two, the synchronization of the size (width and height of the control) is more intuitive, that is, when the size of the Alien clone changes, the size of the Native control can also be set to the size of the Alien clone.

[0038] The synchronization of positions requires a more detailed design. In Qt, a widget internally records its position relative to its direct parent widget (parentWidget), while the position of a Native widget is relative to the widget of the same Native class (nativeParentWidget) in its ancestor node. Figure 1 FIG. 1 is a schematic diagram of a parent control of a Native control and its Alien clone in a 3D rendering device of the present invention. Figure 1 In the case shown, Alien2 labeled 102 is the logical parent control of Native control 101, that is, if you actually want Native control 101 to be managed by Alien2 labeled 102, you need to use Alien clone 105 to replace Native control 101, specify its parent node as Alien2 labeled 102, and specify the parent node of Native control 101 as its root node (nativeParentWidget) (i.e., top-level window 104 in the figure), which is the root node in the parent-child relationship tree of all controls in the figure, Native control 101, Alien2 labeled 102, Alien1 labeled 103, and Alien clone 105, and also has the properties of Native control. In this way, the position of Native control 101 can be set correctly.

[0039] Figure 2 Schematic diagram of the steps for achieving position synchronization in the three-dimensional drawing method of the present invention. When the position of the Alien clone 105 relative to the top-level window 104 (nativeParentWidget) changes, the position of the Native control 101 can be synchronously set to achieve position synchronization. Here, in step 201, a Qt event filter 205 is set to monitor the Alien clone 105 and all its Alien ancestor nodes (i.e. Figure 1 In one embodiment, the three events described here usually do not occur at the same time, and the responses made are for different events. The order in which the events occur may be in the order described below, or may not be in the order described below, so the order in which the events occur is not fixed:

[0040] (1) Step 202, for the position change event (QEvent::Move): synchronously set the position of the Native control 101.

[0041] (2) Step 203, for the parent node about to change event (QEvent::ParentAboutToChange): remove all Alien ancestor nodes (i.e. Figure 1 The association of Alien2 labeled 102 and Alien1 labeled 103 to the event filter 205.

[0042] (3) Step 204, for the parent node changed event (QEvent::ParentChange): associate the event filter 205 with all new Alien ancestor nodes; when the "parent node changed" event occurs, the current parent node is the new parent node, and the process is traced back in the order of the current parent node, the parent node of the parent node, and so on, until a Native control or window is encountered. Tracing back and traversing all parent nodes before the Native control or window, that is, "all new Alien ancestors"

[0043] In this way, it is ensured that no matter how the parent node changes, the position change of the Alien clone 105 relative to the parent node (nativeParentWidget) of the Native control 101 (i.e., the top-level window 104 in the figure) can be monitored, and no redundant events will be associated with the filter; for a certain Alien control (hereinafter referred to as "A"), only the position change of its ancestor node will affect the position of A. Therefore, when the parent node of A changes, its old ancestor node is no longer the ancestor node of A, and their position changes will not affect the position of A, so there is no need for the event filter to perform position synchronization operations, thereby releasing the association between them.

[0044] Figure 3 The flowchart of the three-dimensional drawing method of the present invention. In step 301, three-dimensional graphics are drawn using Qt's Native control; in step 302, an Alien clone is created for each Native control; in step 303, the size and position of the Alien clone of the Native control are synchronized; in step 304, the Alien clone cooperates with other Alien controls, accepts Qt layout management, and completes three-dimensional graphics drawing. In the above step 303, the step of synchronizing the size of the Alien clone of the Native control is to set the size of the Native control to the size of the Alien clone when the size of the Alien clone changes. The following is an example of a statement that sets the size of the Native control to the size of the Alien clone:

[0045] nativeWidget->resize(alienWidget->size());

[0046] The step of synchronizing the size of the Alien clone of the Native control is to synchronously set the position of the Native control 101 when the position of the Alien clone 105 relative to the parent node (i.e., the top-level window 104 (nativeParentWidget)) of the Native control 101 changes. The following is an example of a statement for synchronously setting the position of the Native control 101:

[0047] nativeWidget->move(alienWidget->mapTo(nativeWidget->nativeParentWidget(),{}));

[0048] Regarding the specific embodiment of how to synchronously set the position of the Native control 101, in the above Figure 2 The description is described in detail in .

[0049] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods for three-dimensional graphics drawing described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0050] For example, Figure 4A server, such as an application server, in which the present invention can be implemented is shown. The server conventionally includes a processor 1010 and a computer program product or computer-readable medium in the form of a memory 1020. The memory 1020 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 1020 has a storage space 1030 for a program code 1031 for executing any method step in the above method. For example, the storage space 1030 for program code may include individual program codes 1031 for implementing various steps in the above method, respectively. These program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. Such a computer program product is usually as described in reference Figure 5 The portable or fixed storage unit. The storage unit may have Figure 4 The memory 1020 in the server is similarly arranged as a storage segment, storage space, etc. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 1031', that is, code that can be read by a processor such as 1010, which, when executed by the server, causes the server to perform the various steps in the method described above.

[0051] Figure 6 The following is a schematic diagram of the interface layout effect of the three-dimensional drawing method of the present invention. In the figure, the rectangular area with a three-dimensional geometric body in the middle is a native control for three-dimensional graphics drawing. The three-dimensional drawing method of the present invention is used to draw three-dimensional graphics using the native control of the Qt platform; a non-native control clone is created for the native control; the non-native control clone is set so that the non-native control clone of the native control is synchronized with the native control in size and position; the non-native clone of the native control is matched with other non-native controls (such as control panels 1, 2, and 3 in the figure), and is accepted by Qt layout management to complete the drawing of the entire window interface of the software. Figure 6 This is the interface effect diagram after completing the above content. Figure 6 It can be seen that the method of the present invention can solve the problem of disordered positions of interface controls during the drawing process.

[0052] The interface layout method in the three-dimensional drawing method of the present invention is also an innovation in itself. In addition to being used in three-dimensional drawing, it can also be applied in other applications of Qt. This Qt interface layout method includes the following steps: creating a non-native control clone for each native control; setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in size and position; the non-native clone of the native control cooperates with other non-native controls to complete Qt interface management. Among them: in the step of setting the non-native control clone so that the non-native clone of the native control is synchronized with the native control in size, when the size of the non-native control clone changes, the size of the native control is also set to the size of the clone. Among them: in the step of setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in position, when the position of the non-native control clone (105) relative to the parent node of the native control (101) changes, the native control (101) is set to the same position as the non-native control clone (105). Wherein: the step of setting the non-native control clone so that the non-native clone of the native control is synchronized with the native control in position also includes: setting a Qt event filter (205) for monitoring the non-native control clone (105) and all its non-native control ancestor nodes, and performing different processing on different events: for position change events (QEvent::Move): synchronously setting the position of the native control (101); for parent node about to change events (QEvent::ParentAboutToChange): disassociating all non-native control ancestor nodes from the event filter (205); for parent node changed events (QEvent::ParentChange): associating all new non-native control ancestor nodes with the event filter (205).

[0053] References herein to "one embodiment," "embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. In addition, please note that examples of the term "in one embodiment" do not necessarily all refer to the same embodiment.

[0054] The above description is not intended to limit the meaning or scope of the words used in the following claims that define the present invention. Rather, descriptions and illustrations are provided to help understand the various embodiments. It is expected that future modifications in structure, function, or results will exist without substantial changes, and all such non-substantial changes in the claims are intended to be covered by the claims. Therefore, although the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that many changes and modifications can be made without departing from the claimed invention. In addition, although the term "claimed invention" or "the present invention" is sometimes used in the singular herein, it will be understood that there are multiple inventions as described and claimed.

Claims

1. A method for drawing three-dimensional graphics, comprising the following steps: Use the native controls of the Qt platform to draw 3D graphics; A non-native control clone is created for each native control; the non-native control (102) is the logical parent control of the native control (101), the native control (101) is subject to the layout management of the non-native control (102), the native control (101) is replaced by the non-native control clone (105), the parent node of the non-native control clone (105) is designated as the non-native control (102), the parent node of the native control (101) is designated as the root node (104), and the root node (104) is used as the root node in the relationship tree of the native control (101), the non-native control (102) and the non-native control clone (105); The non-native control clone is set so that the non-native control clone of the native control is synchronized with the native control in terms of size and position; a Qt event filter (205) is set to monitor the non-native control clone (105) and all its non-native control ancestor nodes, and to process different events differently: For a position change event: synchronously setting the position of the native control (101); For the event that the parent node is about to change: remove the association of all non-native control ancestor nodes with the event filter (205); For parent node changed events: associate the event filter with all new non-native control ancestor nodes (205); The non-native clone of the native control cooperates with other non-native controls, accepts Qt layout management, and completes three-dimensional graphics drawing.

2. The method according to claim 1, in: In the step of setting the non-native control clone to synchronize the size of the non-native control clone with the native control, when the size of the non-native control clone changes, the size of the native control is also set to the size of the clone.

3. The method according to claim 1, in: In the step of setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in position, when the position of the non-native control clone (105) relative to the parent node of the native control (101) changes, the native control (101) is set to the same position as the non-native control clone (105).

4. A device for drawing three-dimensional graphics, comprising the following devices: Drawing module, using native controls of the Qt platform to draw 3D graphics; A clone creation module is used to create a non-native control clone for each native control; the non-native control (102) is the logical parent control of the native control (101), so that the native control (101) is subject to the layout management of the non-native control (102), and the native control (101) is replaced by the non-native control clone (105), and the parent node of the non-native control clone (105) is designated as the non-native control (102), and the parent node of the native control (101) is designated as the root node (104), and the root node (104) is used as the root node in the relationship tree of the native control (101), the non-native control (102) and the non-native control clone (105); The synchronization module sets the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in terms of size and position; sets a Qt event filter (205) for monitoring the non-native control clone (105) and all its non-native control ancestor nodes, and performs different processing on different events: For a position change event: synchronously setting the position of the native control (101); For the event that the parent node is about to change: remove the association of all non-native control ancestor nodes with the event filter (205); For parent node changed events: associate the event filter with all new non-native control ancestor nodes (205); In the cooperation module, the non-native clone of the native control cooperates with other non-native controls, accepts Qt layout management, and completes three-dimensional graphics drawing.

5. The device as claimed in claim 4, in: In the synchronization module, when the size of the non-native control clone changes, the size of the native control is also set to the size of the clone.

6. The device as claimed in claim 4, in: In the synchronization module, when the position of the non-native control clone (105) relative to the parent node of the native control (101) changes, the native control (101) is set to the same position as the non-native control clone (105).

7. A Qt interface layout method, comprising the following steps: A non-native control clone is created for each native control; the non-native control (102) is the logical parent control of the native control (101), the native control (101) is subject to the layout management of the non-native control (102), the native control (101) is replaced by the non-native control clone (105), the parent node of the non-native control clone (105) is designated as the non-native control (102), the parent node of the native control (101) is designated as the root node (104), and the root node (104) is used as the root node in the relationship tree of the native control (101), the non-native control (102) and the non-native control clone (105); The non-native control clone is set so that the non-native control clone of the native control is synchronized with the native control in terms of size and position; a Qt event filter (205) is set to monitor the non-native control clone (105) and all its non-native control ancestor nodes, and to process different events differently: For a position change event: synchronously setting the position of the native control (101); For the event that the parent node is about to change: remove the association of all non-native control ancestor nodes with the event filter (205); For parent node changed events: associate the event filter with all new non-native control ancestor nodes (205); The non-native clone of the native control cooperates with other non-native controls to complete Qt interface management.

8. The method according to claim 7, in: In the step of setting the non-native control clone to synchronize the size of the non-native control clone with the native control, when the size of the non-native control clone changes, the size of the native control is also set to the size of the clone.

9. The method according to claim 7, in: In the step of setting the non-native control clone so that the non-native control clone of the native control is synchronized with the native control in position, when the position of the non-native control clone (105) relative to the parent node of the native control (101) changes, the native control (101) is set to the same position as the non-native control clone (105).

Citation Information

Patent Citations

  • Using method of custom control based on Qt

    CN102981861A

  • User interface UI control effect-oriented drawing method and device

    CN105808218A