WO2016054976A1 - 基于QT embedded的同步显示方法、系统及数控机床 - Google Patents

基于QT embedded的同步显示方法、系统及数控机床 Download PDF

Info

Publication number
WO2016054976A1
WO2016054976A1 PCT/CN2015/090492 CN2015090492W WO2016054976A1 WO 2016054976 A1 WO2016054976 A1 WO 2016054976A1 CN 2015090492 W CN2015090492 W CN 2015090492W WO 2016054976 A1 WO2016054976 A1 WO 2016054976A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
event
display content
trigger
content
Prior art date
Application number
PCT/CN2015/090492
Other languages
English (en)
French (fr)
Inventor
周国麟
Original Assignee
北京配天技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京配天技术有限公司 filed Critical 北京配天技术有限公司
Priority to US15/553,981 priority Critical patent/US10325574B2/en
Publication of WO2016054976A1 publication Critical patent/WO2016054976A1/zh

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/395Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
    • G09G5/397Arrangements specially adapted for transferring the contents of two or more bit-mapped memories to the screen simultaneously, e.g. for mixing or overlay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/399Control of the bit-mapped memory using two or more bit-mapped memories, the operations of which are switched in time, e.g. ping-pong buffers
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/18Use of a frame buffer in a display terminal, inclusive of the display panel

Definitions

  • the present invention relates to the field of display technologies, and in particular, to a synchronous display method based on QT embedded, and to a QT-based Embedded synchronous display system, as well as a numerical control machine tool.
  • Qt The Embedded system is an embedded version of the graphical interface development tool QT, which is an embedded graphical interface development tool system, which interfaces with Linux I/O and frame.
  • Buffer frame buffer, standard display device driver interface, that is, a display driver device
  • QT Embedded system is used in the common software environment of embedded hardware architecture. It has the advantage of cross-platform. The same code can be applied to different operating systems such as windows and linux.
  • QT Embedded's own drawing uses a double-buffering method on the display.
  • QT will first implement the updated action in the internal display cache, that is, first draw to this invisible (non-display)
  • the contents of the internal display cache are uniformly updated to the external display cache corresponding to the display, that is, drawn on the screen; and Frame
  • the buffer operation is equivalent to directly acting on the external display buffer corresponding to the display, that is, directly drawn on the screen.
  • the invention mainly solves the technical problem that the prior art Frame buffer operation and the QT drawing display are out of synchronization, and provides a QT based
  • the embedded synchronous display method, system and numerical control machine tool can ensure the frame buffer operation and QT drawing display synchronization, avoid display errors and unnecessary troubles, and improve the user experience.
  • the first technical solution adopted by the present invention is to provide a QT based a synchronous display method, the method includes: triggering a target QT drawing event for displaying the first display content; executing a drawing function corresponding to the QT drawing event, and simultaneously triggering a predefined first trigger event;
  • the first trigger event is used to trigger a frame buffer frame for displaying the second display content.
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; and the first display content and the second display content are synchronously displayed by the display device.
  • the method further includes: predefining a frame buffer frame for triggering display of the second display content.
  • the first trigger event of the buffer operation, and the first trigger event is set to be triggered when the drawing function is executed.
  • the step of setting the first trigger event to be executed when the drawing function is executed specifically includes: setting the first trigger event in a drawing function corresponding to the target QT drawing event.
  • the method further includes: searching for the frame The buffer operation corresponds to a drawing function of the destination QT drawing event to preset the first trigger event in the drawing function.
  • the first display content is a character string or a display background
  • the second display content is a character string.
  • the second technical solution adopted by the present invention is to provide a QT based
  • the embedded synchronous display system includes: a triggering module, an execution module, and a display module, the triggering module is configured to trigger a target QT drawing event for displaying the first display content; and the executing module is configured to execute the QT drawing event corresponding to the Drawing a function and simultaneously triggering a predefined first trigger event; wherein the first trigger event is used to trigger a frame buffer frame for displaying the second display content
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; and the display module is configured to synchronously display the first display content and the second display content by using a display device.
  • the synchronous display system further includes a definition module and an event setting module, where the definition module is configured to pre-define a frame buffer frame for triggering display of the second display content.
  • the first trigger event of the buffer operation; the event setting module is configured to set the first trigger event to be triggered when the drawing function is executed.
  • the event setting module is specifically configured to set the first trigger event in a drawing function corresponding to the target QT drawing event.
  • the synchronous display system further includes a lookup module, and the lookup module is configured to search for the frame
  • the buffer operation corresponds to a drawing function of the destination QT drawing event, such that the event setting module presets the first trigger event in the drawing function.
  • the first display content is a character string or a display background
  • the second display content is a character string.
  • the third technical solution adopted by the present invention is to provide a numerical control machine tool including: a machine tool main body, a numerical control system mounted on the main body of the machine tool, and an electrical connection with the numerical control system Servo drive device, motor connected to the servo drive device, and processing device connected to the motor, the numerical control device including QT based
  • the synchronous display system includes: a triggering module, an execution module, and a display module, the triggering module is configured to trigger a target QT drawing event for displaying the first display content; and the executing module is configured to execute the QT drawing event corresponding to the Drawing a function and simultaneously triggering a predefined first trigger event; wherein the first trigger event is used to trigger a frame buffer frame for displaying the second display content
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; and the display module is configured to synchronously display the first display content and the second display content by using a display device.
  • the synchronous display system further includes a definition module and an event setting module, where the definition module is configured to pre-define a frame buffer frame for triggering display of the second display content.
  • the first trigger event of the buffer operation; the event setting module is configured to set the first trigger event to be triggered when the drawing function is executed.
  • the event setting module is specifically configured to set the first trigger event in a drawing function corresponding to the target QT drawing event.
  • the synchronous display system further includes a lookup module, and the lookup module is configured to search for the frame
  • the buffer operation corresponds to a drawing function of the destination QT drawing event, such that the event setting module presets the first trigger event in the drawing function.
  • the first display content is a character string or a display background
  • the second display content is a character string.
  • the fourth technical solution adopted by the present invention is to provide a QT based An embedded synchronous display device, the synchronous display device comprising a processor, a memory and a display device, wherein the processor is configured to execute:
  • the first trigger event is used to trigger a frame buffer frame for displaying the second display content a buffer operation, the second display content and the first display content are content that needs to be displayed synchronously;
  • the first display content and the second display content are simultaneously displayed by the display device.
  • a fifth technical solution adopted by the present invention is to provide a computer readable storage medium for storing computer program code, which is caused to be processed by a computer processor when executed by a computer processor Execution based on QT Embedded synchronous display method, the method comprising:
  • the first trigger event is used to trigger a frame buffer frame for displaying the second display content a buffer operation, the second display content and the first display content are content that needs to be displayed synchronously;
  • the first display content and the second display content are simultaneously displayed by the display device.
  • the present invention triggers the execution of the frame by the defined first trigger event.
  • the buffer operation is triggered when the first trigger event is set to the drawing function of the destination QT drawing event, thereby ensuring that the frame is executed synchronously after performing the target QT drawing event Buffer operation to ensure that the frame buffer operation and QT embedded drawing are synchronized, that is: ensure the frame
  • the buffer operation and the corresponding operation of the destination QT drawing event are simultaneously displayed on the same display. Avoid displaying errors and unnecessary troubles and improving the user experience.
  • FIG. 1 is a schematic flow chart of a preferred embodiment of a synchronous display method of the present invention
  • FIG. 2 is a schematic flow chart of another preferred embodiment of the synchronous display method of the present invention.
  • Figure 3 is a schematic block diagram of a first embodiment of a synchronous display system of the present invention.
  • FIG. 4 is a schematic block diagram of a second embodiment of the synchronous display system of the present invention.
  • FIG. 1 is a schematic flowchart of a preferred embodiment of a synchronous display method according to the present invention.
  • the synchronous display method of the present embodiment is preferably based on QT.
  • the embedded system it includes but is not limited to the following steps.
  • step S200 a target QT drawing event for displaying the first display content is triggered.
  • Step S210 executing a drawing function corresponding to the QT drawing event, and simultaneously triggering a predefined first trigger event.
  • the first trigger event is used to trigger a frame buffer frame for displaying the second display content.
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously, and the first display content and the second display content are synchronously displayed by the display device.
  • step S220 the first display content and the second display content are synchronously displayed by the display device.
  • step S220 the embodiment triggers the target QT drawing event in an active or passive manner, and triggers the first trigger event when the target QT drawing event is triggered and the drawing function is executed; so that the drawing function caches the internal display.
  • Execute the frame after copying to the external display cache The buffer operation causes the second display content and the execution frame obtained by executing the drawing function
  • the first display content obtained by the buffer operation is synchronously displayed, wherein the first trigger event triggered by the display driving device can be set in the drawing function of the corresponding destination QT drawing event, and after the triggering, the execution execution frame
  • the buffer operation implements an update to the display content.
  • the frame buffer operation of this embodiment is performed on QT. After the embedded drawing function and copying the internal display cache to the external display cache, the next cycle will be repeated, and the steps of each cycle are the same as those described above, and will not be described in detail here. This way can guarantee the frame The buffer operation is always in the background of the latest updated QT embedded drawing; therefore, the frame buffer operation and QT are implemented. Synchronous display of embedded drawing, preventing the first display content of frame buffer update from preceding or falling behind QT The second display content of the embedded drawing update can effectively avoid the occurrence of splash screens, display errors, and unnecessary troubles caused by display errors, thereby improving the user experience.
  • the first display content of the embodiment may be a character string or a display background, and the second display content may be a character string. It should be noted that this embodiment can also be directed to the case of multiple display windows, which only need to establish a frame of the mapping function of the target QT drawing event and its associated trigger event.
  • the buffer operations may be one-to-one correspondence, and will not be described in detail within the scope easily understood by those skilled in the art.
  • FIG. 2 is a schematic flowchart diagram of another preferred embodiment of the synchronous display method of the present invention.
  • the display method in this embodiment includes the following steps:
  • Step S100 predefining a first trigger event for triggering a frame buffer frame buffer operation for displaying the second display content.
  • step S110 the first trigger event is set to be triggered when the drawing function is executed.
  • the predefined first trigger event is with QT
  • the QT event mechanism in embedded is adapted to the trigger event, so that the frame buffer program can be triggered by the first trigger event; in other words, the embodiment utilizes QT
  • the QT event in embedded controls the frame buffer program to control the display.
  • Step S110 may specifically include: setting the first trigger event in a drawing function corresponding to the target QT drawing event.
  • the synchronous display method provided by the implementation may further include: searching and frame The buffer operation corresponds to the drawing function of the destination QT drawing event to preset the first trigger event in the drawing function.
  • QT Embedded drawing functions can be triggered by passive actions such as key events, mouse events, and drag and drop events, such as maximal and minimized mouse control windows, of course, QT Embedded drawing function can also be triggered by active mode actions such as program update window screen; after triggering, QT
  • the embedded paintEvent() function (drawing function) performs response processing, that is, when the drawing is needed, the drawing function of the calling window is triggered, and then the drawing function draws the content that the window needs to update into the internal display buffer of the QT, and finally the internal The display cache is copied to the external display cache of the display.
  • the frame buffer operation is a direct operation of the external display cache, so the frame cannot be used.
  • the buffer operation is directly set in the drawing function, otherwise the first display content of the frame buffer operation will appear than the QT
  • the embedded drawing shows the second display content ahead of the defect.
  • the buffer operation is directly set in the drawing function to solve the technical problem that the display cannot be synchronized.
  • the first trigger event is set when the drawing function corresponding to the QT drawing event is executed.
  • Step S120 triggering a target QT drawing event for displaying the first display content.
  • Step S130 executing a drawing function corresponding to the QT drawing event, and simultaneously triggering a predefined first trigger event.
  • the first trigger event is used to trigger a frame buffer frame for displaying the second display content.
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously, and the first display content and the second display content are synchronously displayed by the display device.
  • step S140 the first display content and the second display content are synchronously displayed by the display device.
  • step S140 the embodiment triggers the target QT drawing event in an active or passive manner, and triggers the first trigger event when the target QT drawing event is triggered and the drawing function is executed; so that the drawing function caches the internal display.
  • Execute the frame after copying to the external display cache The buffer operation causes the second display content and the execution frame obtained by executing the drawing function
  • the first display content obtained by the buffer operation is synchronously displayed, wherein the first trigger event triggered by the display driving device can be set in the drawing function of the corresponding destination QT drawing event, and after the triggering, the execution execution frame
  • the buffer operation implements an update to the display content.
  • the frame buffer operation of this embodiment is performed on QT. After the embedded drawing function and copying the internal display cache to the external display cache, the next cycle will be repeated, and the steps of each cycle are the same as those described above, and will not be described in detail here. This way can guarantee the frame The buffer operation is always in the background of the latest updated QT embedded drawing; therefore, the frame buffer operation and QT are implemented. Synchronous display of embedded drawing, preventing the first display content of frame buffer update from preceding or falling behind QT The second display content of the embedded drawing update can effectively avoid the occurrence of splash screens, display errors, and unnecessary troubles caused by display errors, thereby improving the user experience.
  • the first display content of the embodiment may be a character string or a display background, and the second display content may be a character string. It should be noted that this embodiment can also be directed to the case of multiple display windows, which only need to establish a frame of the mapping function of the target QT drawing event and its associated trigger event.
  • the buffer operations may be one-to-one correspondence, and will not be described in detail within the scope easily understood by those skilled in the art.
  • FIG. 3 is a schematic block diagram of a first embodiment of the synchronous display system of the present invention.
  • the synchronous display system of the present embodiment is preferably based on QT.
  • the embedded system includes but is not limited to the trigger module 31, the execution module 32, and the display module 33.
  • the trigger module 31 is configured to trigger a target QT drawing event for displaying the first display content.
  • the execution module 32 is configured to execute a drawing function corresponding to the QT drawing event, and simultaneously trigger a predefined first trigger event; wherein the first trigger event is used to trigger a frame buffer frame for displaying the second display content.
  • the buffer operation, the second display content and the first display content are contents that need to be displayed synchronously.
  • the display module 33 is configured to synchronously display the first display content and the second display content by using the display device, wherein the triggered first trigger event may be set in the drawing function of the corresponding destination QT drawing event by the display driving device, and triggered After the drive executes the frame
  • the buffer operation implements an update to the display content.
  • the display module 33 may be a liquid crystal display or the like, which is not limited herein.
  • the first display content may be a character string or a display background
  • the second display content may be a character string.
  • FIG. 4 is a schematic block diagram of a second embodiment of the synchronous display system of the present invention; wherein the synchronous display system of the present embodiment is preferably based on QT Within the embedded system, it includes but is not limited to the definition module 20, the lookup module 21, the event setting module 22, the trigger module 23, the execution module 24, and the display module 25.
  • the definition module 20 is configured to pre-define a frame buffer frame for triggering display of the second display content.
  • the first trigger event defined by the definition module 20 is QT
  • the QT event mechanism in embedded is adapted to the trigger event, so that the frame buffer program can be triggered by the predefined trigger event; in other words, the embodiment utilizes QT
  • the QT event in embedded controls the frame buffer program to control the display.
  • the event setting module 22 is configured to: when the first trigger event defined by the definition module 20 is set to execute the drawing function corresponding to the target QT drawing event, to trigger the first trigger event when the target QT drawing event is triggered and the drawing function is executed, Causes the drawing function to copy the internal display cache to the external display cache and execute the frame
  • the buffer operation causes the second display content obtained by executing the drawing function to be displayed in synchronization with the first display content obtained by performing the frame buffer operation.
  • the event setting module 22 is specifically configured to set the first trigger event in a drawing function corresponding to the destination QT drawing event.
  • the search module 21 is used to find and frame The buffer operation corresponds to the drawing function of the destination QT drawing event, so that the event setting module 22 can set the first trigger event in the drawing function.
  • the triggering module 23 is configured to trigger a target QT drawing event for displaying the first display content
  • the executing module 24 is configured to execute a drawing function corresponding to the QT drawing event, and trigger the predefined function according to the setting of the event setting module 22 while executing the drawing function.
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; the display module 25 is configured to synchronously display the first display content and the second display content by the display device, wherein the display device can be triggered by the display driving device
  • the first trigger event is set in the drawing function of the corresponding destination QT drawing event, and after the triggering, the driving execution frame
  • the buffer operation implements an update to the display content.
  • the display module 25 may be a liquid crystal display or the like, which is not limited herein.
  • the first display content may be a character string or a display background
  • the second display content may be a character string.
  • the synchronous display system triggers the target QT drawing event in an active or passive manner, and triggers the first trigger event when the target QT drawing event is triggered and the drawing function is executed; so that the drawing function copies the internal display buffer to the external display.
  • Execute frame after caching The buffer operation causes the second display content obtained by executing the drawing function to be displayed in synchronization with the first display content obtained by performing the frame buffer operation. This way can guarantee the frame
  • the buffer operation is always in the background of the latest updated QT embedded drawing; therefore, the frame buffer operation and QT are implemented. Synchronous display of embedded drawing, preventing the first display content of frame buffer update from preceding or falling behind QT
  • the second display content of the embedded drawing update can effectively avoid the occurrence of splash screens, display errors, and unnecessary troubles caused by display errors, thereby improving the user experience.
  • the embodiment of the invention further provides a numerical control machine tool, comprising: a machine tool body, a numerical control system mounted on the machine tool body, a servo drive device electrically connected to the numerical control system, a motor connected to the servo drive device, and the above A machining device for connecting the motor, the above numerical control device comprising the QT based on the above embodiment
  • a numerical control machine tool comprising: a machine tool body, a numerical control system mounted on the machine tool body, a servo drive device electrically connected to the numerical control system, a motor connected to the servo drive device, and the above A machining device for connecting the motor, the above numerical control device comprising the QT based on the above embodiment
  • the embedded synchronous display system for details of the synchronous display system, refer to the description of the foregoing embodiments, and details are not described herein again.
  • Embodiments of the present invention further provide a QT based An embedded synchronous display device, the display device comprising a processor, a memory and a display device, wherein the processor is configured to: trigger a target QT drawing event for displaying the first display content; execute a drawing function corresponding to the QT drawing event, and trigger the predefined a first trigger event; wherein the first trigger event is used to trigger a frame buffer frame for displaying the second display content
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; the first display content and the second display content are synchronously displayed by the display device.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device implementations described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium for storing computer program code, the computer
  • the program code when executed by a computer processor, causes the computer processor to execute QT based
  • the embedded synchronous display method includes: triggering a target QT drawing event for displaying the first display content; executing a drawing function corresponding to the QT drawing event, and simultaneously triggering a predefined first trigger event; wherein the first trigger event is used for Triggering a frame buffer frame displaying the second display content
  • the buffer operation, the second display content and the first display content are content that needs to be displayed synchronously; the first display content and the second display content are synchronously displayed by the display device.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a management server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种基于QT embedded的同步显示方法、系统及数控机床,其中该方法包括:触发显示第一显示内容的目的QT绘图事件(S200);执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件(S210);其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;通过显示装置同步显示所述第一显示内容和所述第二显示内容(S220)。所述基于QT embedded的同步显示方法、系统及数控机床保证在执行目的QT绘图事件之后执行frame buffer操作,确保frame buffer操作和QT embedded绘图显示同步,避免显示错误,改善用户体验。

Description

基于QT embedded的同步显示方法、系统及数控机床
【技术领域】
本发明涉及显示技术领域,具体是涉及一种基于QT embedded的同步显示方法,还涉及一种基于QT embedded的同步显示系统,以及涉及一种数控机床。
【背景技术】
现有技术中,Qt Embedded系统是图形化界面开发工具QT的嵌入式版本系统,即嵌入式图形化界面开发工具系统,其与Linux I/O接口以及frame buffer(帧缓冲,标准显示设备驱动接口,即一种显示驱动设备)直接交互,拥有较高的运行效率,而且整体采用面向对象编程,拥有良好地体系架构和编程模式。在具体的应用中,QT Embedded系统用于嵌入式硬件架构的常用软件环境,其具有跨平台的优势,相同的代码可以适用于windows、linux等不同操作系统下。
然而,虽然在QT Embedded环境下使用frame buffer操作可以绕开QT本身的绘图操作系统,但是,Frame buffer的操作会和QT本身的绘图显示不同步。
具体而言,QT Embedded自身的绘图在显示上使用了双缓存方法,对于在代码里一系列的显示更新需求,QT会先将更新的动作在内部显示缓存中实现,即先描绘到这个看不见(非显示)的缓存里,再统一将内部显示缓存的内容更新到显示屏对应的外部显示缓存上,即描绘到屏幕上;而Frame buffer操作等于直接作用于显示屏对应的外部显示缓存,即直接描绘在屏幕上。
不难理解的是,由于在进行frame buffer操作时往往不知道QT自身的绘图流程到达哪个步骤,导致常常会出现frame buffer更新的显示内容先于/落后QT更新的显示内容,即出现更新显示内容不同步的现象,造成闪屏、显示区域不同步等,用户体验差甚至产生显示错误而引起不必要的麻烦。
【发明内容】
本发明主要解决现有技术Frame buffer操作和QT绘图显示不同步的技术问题,提供一种基于QT embedded的同步显示方法、系统及数控机床,能够保证Frame buffer操作和QT绘图显示同步,避免显示错误和不必要的麻烦,改善用户体验。
为解决上述技术问题,本发明采用的第一个技术方案是:提供一种基于QT embedded的同步显示方法,所述同步显示方法包括:触发显示第一显示内容的目的QT绘图事件;执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;通过显示装置同步显示所述第一显示内容和所述第二显示内容。
其中,在所述触发显示第一显示内容的目的QT绘图事件之前,所述方法还包括:预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件,并将所述第一触发事件设于执行所述绘图函数时被触发。
其中,所述将所述第一触发事件设于执行所述绘图函数时被触发的步骤,具体包括:将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
其中,在所述将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中的步骤之前,所述方法还包括:查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以将所述第一触发事件预设于所述绘图函数中。
其中,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
为解决上述技术问题,本发明采用的第二个技术方案是:提供一种基于QT embedded的同步显示系统,所述同步显示系统包括:触发模块、执行模块以及显示模块,触发模块用于触发显示第一显示内容的目的QT绘图事件;执行模块用于执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;显示模块用于通过显示装置同步显示所述第一显示内容和所述第二显示内容。
其中,所述同步显示系统还包括定义模块和事件设置模块,所述定义模块用于预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件;事件设置模块用于将所述第一触发事件设于执行所述绘图函数时被触发。
其中,所述事件设置模块具体用于将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
其中,所述同步显示系统还包括查找模块,所述查找模块用于查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以使得所述事件设置模块将所述第一触发事件预设于所述绘图函数中。
其中,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
为解决上述技术问题,本发明采用的第三个技术方案是:提供一种数控机床,所述数控机床包括:机床主体、安装在所述机床主体上的数控系统、与所述数控系统电连接的伺服驱动装置、连接所述伺服驱动装置的电机以及与所述电机连接的加工装置,所述数控装置包括基于QT embedded的同步显示系统,所述同步显示系统包括:触发模块、执行模块以及显示模块,触发模块用于触发显示第一显示内容的目的QT绘图事件;执行模块用于执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;显示模块用于通过显示装置同步显示所述第一显示内容和所述第二显示内容。
其中,所述同步显示系统还包括定义模块和事件设置模块,所述定义模块用于预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件;事件设置模块用于将所述第一触发事件设于执行所述绘图函数时被触发。
其中,所述事件设置模块具体用于将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
其中,所述同步显示系统还包括查找模块,所述查找模块用于查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以使得所述事件设置模块将所述第一触发事件预设于所述绘图函数中。
其中,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
为解决上述技术问题,本发明采用的第四个技术方案是:提供一种基于QT embedded的同步显示设备,所述同步显示设备包括处理器、存储器及显示装置,其中所述处理器用于执行:
触发显示第一显示内容的目的QT绘图事件;
执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
通过显示装置同步显示所述第一显示内容和所述第二显示内容。
为解决上述技术问题,本发明采用的第五个技术方案是:提供一种计算机可读存储介质,用于存储计算机程序代码,所述计算机程序代码在经计算机处理器执行时使得所述计算机处理器执行基于QT embedded的同步显示方法,所述方法包括:
触发显示第一显示内容的目的QT绘图事件;
执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
通过显示装置同步显示所述第一显示内容和所述第二显示内容。
本发明的有益效果是:区别于现有技术的情况,本发明通过定义的第一触发事件来触发执行frame buffer操作,并将所述第一触发事件设置于目的QT绘图事件的绘图函数时被触发,从而保证在执行目的QT绘图事件之后同步执行所述frame buffer操作,以确保frame buffer操作和QT embedded绘图同步显示,即:确保frame buffer操作和目的QT绘图事件的相应操作同步显示在同一显示器上。避免显示错误和不必要的麻烦,改善用户体验。
【附图说明】
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明同步显示方法一优选实施例的流程示意图;
图2是本发明同步显示方法另一优选实施例的流程示意图;
图3是本发明同步显示系统第一实施例的示意框图;以及
图4是本发明同步显示系统第二实施例的示意框图。
【具体实施方式】
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
参阅图1,图1是本发明同步显示方法一优选实施例的流程示意图,本实施例的同步显示方法优选的采用到基于QT embedded的系统中,其包括但不限于以下步骤。
步骤S200,触发显示第一显示内容的目的QT绘图事件。
步骤S210,执行QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件。
其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容,该第一显示内容和第二显示内容通过显示装置进行同步显示。
步骤S220,通过显示装置同步显示第一显示内容和第二显示内容。
需要说明的是,在步骤S220中,本实施例通过主动或者被动方式触发目的QT绘图事件,而在触发目的QT绘图事件并执行绘图函数时触发第一触发事件;以使绘图函数将内部显示缓存复制到外部显示缓存之后执行frame buffer操作,使得执行绘图函数所得到的第二显示内容与执行frame buffer操作所得到的第一显示内容同步显示,其中,可以通过显示驱动设备将被触发的第一触发事件设置于对应的目的QT绘图事件的绘图函数中,在触发后,驱动执行frame buffer操作实现对显示内容的更新。
另外,本实施例的frame buffer操作执行于QT embedded绘图函数和将内部显示缓存复制到外部显示缓存之后,将重复进行下一个循环,每个循环过程的步骤与上述过程相同,此处不再详述。这种方式能够保证frame buffer操作始终处于当前最新更新的QT embedded绘图背景中;因此实现了frame buffer操作和QT embedded绘图的同步显示,防止frame buffer更新的第一显示内容先于或落后QT embedded绘图更新的第二显示内容,可以有效地避免出现闪屏、显示错误和由于显示错误而造成的不必要麻烦,从而改善用户体验。
其中,本实施例的第一显示内容可为字符串或显示背景,第二显示内容可为字符串。需要指出的是,本实施例还可以针对多个显示窗口的情况,其只需建立目的QT绘图事件的绘图函数与其相关联的触发事件的frame buffer操作一一对应即可,在本技术领域人员容易理解的范围内,不作细述。
请参阅图2,图2是本发明同步显示方法另一优选实施例的流程示意图,该实施例中的显示方法包括如下步骤:
步骤S100,预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件。
步骤S110,将第一触发事件设于执行绘图函数时被触发。
预定义的第一触发事件为与QT embedded中的QT事件机制相适配的触发事件,以能通过该第一触发事件触发驱动frame buffer程序;换而言之,本实施例利用QT embedded中的QT事件来控制frame buffer程序,进而实现对显示的控制。
步骤S110可以具体包括:将第一触发事件设于目的QT绘图事件对应的绘图函数中。
优选的,在步骤S110之前,本实施提供的同步显示方法还可包括:查找与frame buffer操作相对应的目的QT绘图事件的绘图函数,以将第一触发事件预设于绘图函数中。
本实施例QT embedded的绘图功能可以通过按键事件、鼠标事件和拖放事件等被动方式的动作所触发,譬如鼠标控制窗口的最大、最小化,当然,QT embedded的绘图功能也可以由程序更新窗口画面等主动方式的动作所触发;在触发后,QT embedded的paintEvent()函数(绘图函数)进行响应处理,即在需要绘图时,会触发调用窗口的绘图函数,接着绘图函数把窗口需要更新的内容描画到QT的内部显示缓存中,最后才把内部显示缓存复制到显示屏的外部显示缓存上。
不难看出,由于frame buffer操作为直接操作外部显示缓存,因此不能将frame buffer操作直接设置于绘图函数内,否则会出现frame buffer操作显示的第一显示内容比QT embedded的绘图显示的第二显示内容提前的缺陷。为了在不能将frame buffer操作直接设置于绘图函数内的情况下而解决不能同步显示的技术问题,本实施例将第一触发事件设于执行目的QT绘图事件对应的绘图函数时被触发。
为了保证frame buffer操作和绘图函数是针对相同的一个显示窗口/界面,因此需要查找与frame buffer操作相对应的目的QT绘图事件的绘图函数,再将第一触发事件设于绘图函数中。本实施例通过使用QT embedded的事件机制查找QT embedded绘图的执行时间、并确定与目的QT绘图事件匹配的下个事件循环时间来确定frame buffer操作,其具体实现过程在本技术领域人员容易理解的范围内,不作细述。
步骤S120,触发显示第一显示内容的目的QT绘图事件。
步骤S130,执行QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件。
其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容,该第一显示内容和第二显示内容通过显示装置进行同步显示。
步骤S140,通过显示装置同步显示第一显示内容和第二显示内容。
需要说明的是,在步骤S140中,本实施例通过主动或者被动方式触发目的QT绘图事件,而在触发目的QT绘图事件并执行绘图函数时触发第一触发事件;以使绘图函数将内部显示缓存复制到外部显示缓存之后执行frame buffer操作,使得执行绘图函数所得到的第二显示内容与执行frame buffer操作所得到的第一显示内容同步显示,其中,可以通过显示驱动设备将被触发的第一触发事件设置于对应的目的QT绘图事件的绘图函数中,在触发后,驱动执行frame buffer操作实现对显示内容的更新。
另外,本实施例的frame buffer操作执行于QT embedded绘图函数和将内部显示缓存复制到外部显示缓存之后,将重复进行下一个循环,每个循环过程的步骤与上述过程相同,此处不再详述。这种方式能够保证frame buffer操作始终处于当前最新更新的QT embedded绘图背景中;因此实现了frame buffer操作和QT embedded绘图的同步显示,防止frame buffer更新的第一显示内容先于或落后QT embedded绘图更新的第二显示内容,可以有效地避免出现闪屏、显示错误和由于显示错误而造成的不必要麻烦,从而改善用户体验。
其中,本实施例的第一显示内容可为字符串或显示背景,第二显示内容可为字符串。需要指出的是,本实施例还可以针对多个显示窗口的情况,其只需建立目的QT绘图事件的绘图函数与其相关联的触发事件的frame buffer操作一一对应即可,在本技术领域人员容易理解的范围内,不作细述。
结合上述实施例并请参阅图3,图3是本发明同步显示系统第一实施例的示意框图,本实施例同步显示系统优选的采用到基于QT embedded的系统内,其包括但不限于触发模块31、执行模块32以及显示模块33。
具体而言,触发模块31用于触发显示第一显示内容的目的QT绘图事件。
执行模块32用于执行QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容。
显示模块33用于通过显示装置同步显示第一显示内容和第二显示内容,其中,可以通过显示驱动设备将被触发的第一触发事件设置于对应的目的QT绘图事件的绘图函数中,在触发后,驱动执行frame buffer操作实现对显示内容的更新。显示模块33可以为液晶显示器等此处不做限定。
其中,第一显示内容可为字符串或显示背景,第二显示内容可为字符串。此外,本实施例同步显示系统的具体实现过程请参阅前面同步显示方法的具体描述,在本技术领域人员容易结合理解的范围内,不再赘述。
请参阅图4,图4是本发明同步显示系统第二实施例的示意框图;其中,本实施例同步显示系统优选的采用到基于QT embedded的系统内,其包括但不限于定义模块20、查找模块21、事件设置模块22、触发模块23、执行模块24以及显示模块25。
在本实施例中,定义模块20用于预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件。其中,由定义模块20所定义的第一触发事件为与QT embedded中的QT事件机制相适配的触发事件,以能通过该预定义触发事件触发驱动frame buffer程序;换而言之,本实施例利用QT embedded中的QT事件来控制frame buffer程序,进而实现对显示的控制。
事件设置模块22用于将定义模块20定义的第一触发事件设于执行目的QT绘图事件对应的绘图函数时被触发,以在触发目的QT绘图事件并执行绘图函数时触发第一触发事件,以使绘图函数将内部显示缓存复制到外部显示缓存之后执行frame buffer操作,使得执行绘图函数所得到的第二显示内容与执行frame buffer操作所得到的第一显示内容同步显示。
需要说明的是,在优选的实施例中,事件设置模块22具体用于将第一触发事件设于目的QT绘图事件对应的绘图函数中。
查找模块21用于查找与frame buffer操作相对应的目的QT绘图事件的绘图函数,以使得事件设置模块22可将第一触发事件设于绘图函数中。
触发模块23用于触发显示第一显示内容的目的QT绘图事件,执行模块24用于执行QT绘图事件对应的绘图函数,并根据事件设置模块22之前的设置在执行上述绘图函数的同时触发预定义的第一触发事件;其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容;显示模块25用于通过显示装置同步显示第一显示内容和第二显示内容,其中,可以通过显示驱动设备将被触发的第一触发事件设置于对应的目的QT绘图事件的绘图函数中,在触发后,驱动执行frame buffer操作实现对显示内容的更新。显示模块25可以为液晶显示器等此处不做限定。
其中,第一显示内容可以为字符串或显示背景,第二显示内容可以为字符串。此外,本实施例同步显示系统的具体实现过程请参阅前面同步显示方法的具体描述,在本技术领域人员容易结合理解的范围内,不再赘述。
本实施例提供的同步显示系统,通过主动或者被动方式触发目的QT绘图事件,而在触发目的QT绘图事件并执行绘图函数时触发第一触发事件;以使绘图函数将内部显示缓存复制到外部显示缓存之后执行frame buffer操作,使得执行绘图函数所得到的第二显示内容与执行frame buffer操作所得到的第一显示内容同步显示。这种方式能够保证frame buffer操作始终处于当前最新更新的QT embedded绘图背景中;因此实现了frame buffer操作和QT embedded绘图的同步显示,防止frame buffer更新的第一显示内容先于或落后QT embedded绘图更新的第二显示内容,可以有效地避免出现闪屏、显示错误和由于显示错误而造成的不必要麻烦,从而改善用户体验。
本发明实施例还提供一种数控机床,该数控机床包括:机床主体、安装在上述机床主体上的数控系统、与上述数控系统电连接的伺服驱动装置、连接上述伺服驱动装置的电机以及与上述电机连接的加工装置,上述数控装置包括上述实施例所描述的基于QT embedded的同步显示系统,关于该同步显示系统的具体内容,请参考前述各实施例的描述,在此不再赘述。
本发明实施例进一步提供一种基于QT embedded的同步显示设备,该显示设备包括处理器、存储器及显示装置,其中处理器用于执行:触发显示第一显示内容的目的QT绘图事件;执行QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容;通过显示装置同步显示第一显示内容和第二显示内容。关于该处理器工作过程的具体内容,请参考前述各实施例的描述,此处亦不再赘述。
在本发明所提供的几个实施方式中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。
另外,在本发明各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中,该计算机可读取存储介质用于存储计算机程序代码,计算机程序代码在经计算机处理器执行时使得计算机处理器执行基于QT embedded的同步显示方法,该方法包括:触发显示第一显示内容的目的QT绘图事件;执行QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,第二显示内容与第一显示内容为需要同步显示的内容;通过显示装置同步显示第一显示内容和第二显示内容。而该方法过程的具体内容,请参考前述各实施例的描述,此处不再重复。
基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,管理服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (17)

  1. 一种基于QT embedded的同步显示方法,其特征在于,所述同步显示方法包括:
    触发显示第一显示内容的目的QT绘图事件;
    执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
    通过显示装置同步显示所述第一显示内容和所述第二显示内容。
  2. 根据权利要求1所述的方法,其特征在于,在所述触发显示第一显示内容的目的QT绘图事件之前,所述方法还包括:
    预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件,并将所述第一触发事件设于执行所述绘图函数时被触发。
  3. 根据权利要求2所述的同步显示方法,其特征在于,所述将所述第一触发事件设于执行所述绘图函数时被触发的步骤,具体包括:
    将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
  4. 根据权利要求3所述的同步显示方法,其特征在于,在所述将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中的步骤之前,所述方法还包括:
    查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以将所述第一触发事件预设于所述绘图函数中。
  5. 根据权利要求1所述的同步显示方法,其特征在于,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
  6. 一种基于QT embedded的同步显示系统,其特征在于,所述同步显示系统包括:
    触发模块,用于触发显示第一显示内容的目的QT绘图事件;
    执行模块,用于执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
    显示模块,用于通过显示装置同步显示所述第一显示内容和所述第二显示内容。
  7. 根据权利要求6所述的同步显示系统,其特征在于,所述同步显示系统还包括:
    定义模块,用于预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件;
    事件设置模块,用于将所述第一触发事件设于执行所述绘图函数时被触发。
  8. 根据权利要求7所述的同步显示系统,其特征在于,所述事件设置模块具体用于将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
  9. 根据权利要求8所述的同步显示系统,其特征在于,所述同步显示系统还包括:
    查找模块,用于查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以使得所述事件设置模块将所述第一触发事件预设于所述绘图函数中。
  10. 根据权利要求6所述的同步显示系统,其特征在于,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
  11. 一种数控机床,其特征在于,所述数控机床包括:机床主体、安装在所述机床主体上的数控系统、与所述数控系统电连接的伺服驱动装置、连接所述伺服驱动装置的电机以及与所述电机连接的加工装置,所述数控装置包括基于QT embedded的同步显示系统,所述同步显示系统包括:
    触发模块,用于触发显示第一显示内容的目的QT绘图事件;
    执行模块,用于执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
    显示模块,用于通过显示装置同步显示所述第一显示内容和所述第二显示内容。
  12. 根据权利要求11所述的数控机床,其特征在于,所述同步显示系统还包括:
    定义模块,用于预定义用于触发显示第二显示内容的帧缓存frame buffer操作的第一触发事件;
    事件设置模块,用于将所述第一触发事件设于执行所述绘图函数时被触发。
  13. 根据权利要求12所述的数控机床,其特征在于,所述事件设置模块具体用于将所述第一触发事件设于所述目的QT绘图事件对应的绘图函数中。
  14. 根据权利要求13所述的数控机床,其特征在于,所述同步显示系统还包括:
    查找模块,用于查找与所述frame buffer操作相对应的目的QT绘图事件的绘图函数,以使得所述事件设置模块将所述第一触发事件预设于所述绘图函数中。
  15. 根据权利要求11所述的数控机床,其特征在于,所述第一显示内容为字符串或显示背景,所述第二显示内容为字符串。
  16. 一种基于QT embedded的同步显示设备,其特征在于,包括处理器、存储器及显示装置,其中所述处理器用于执行:
    触发显示第一显示内容的目的QT绘图事件;
    执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
    通过显示装置同步显示所述第一显示内容和所述第二显示内容。
  17. 一种计算机可读存储介质,用于存储计算机程序代码,所述计算机程序代码在经计算机处理器执行时使得所述计算机处理器执行基于QT embedded的同步显示方法,所述方法包括:
    触发显示第一显示内容的目的QT绘图事件;
    执行所述QT绘图事件对应的绘图函数,并同时触发预定义的第一触发事件;其中,所述第一触发事件用于触发显示第二显示内容的帧缓存frame buffer操作,所述第二显示内容与所述第一显示内容为需要同步显示的内容;
    通过显示装置同步显示所述第一显示内容和所述第二显示内容。
PCT/CN2015/090492 2014-10-09 2015-09-24 基于QT embedded的同步显示方法、系统及数控机床 WO2016054976A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/553,981 US10325574B2 (en) 2014-10-09 2015-09-24 Simultaneous display method, system, equipment based on QT embedded

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410528481.3A CN104331262B (zh) 2014-10-09 2014-10-09 基于QT embedded的同步显示方法、系统及数控机床
CN201410528481.3 2014-10-09

Publications (1)

Publication Number Publication Date
WO2016054976A1 true WO2016054976A1 (zh) 2016-04-14

Family

ID=52405997

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090492 WO2016054976A1 (zh) 2014-10-09 2015-09-24 基于QT embedded的同步显示方法、系统及数控机床

Country Status (3)

Country Link
US (1) US10325574B2 (zh)
CN (1) CN104331262B (zh)
WO (1) WO2016054976A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331262B (zh) 2014-10-09 2019-10-29 北京配天技术有限公司 基于QT embedded的同步显示方法、系统及数控机床
CN105138230B (zh) * 2015-10-10 2016-11-23 珠海安联锐视科技股份有限公司 嵌入式图形用户界面框架系统及其程序管理方法
CN105159647A (zh) * 2015-10-27 2015-12-16 北京华云天一科技有限公司 屏幕刷新方法及其装置
CN106406791B (zh) * 2016-08-31 2020-07-31 许继集团有限公司 快速同步显示方法、系统及与该系统连接的装置
JP6374456B2 (ja) * 2016-09-02 2018-08-15 ファナック株式会社 電子機器及び数値制御装置
CN106569765B (zh) * 2016-10-27 2019-10-29 深圳市元征科技股份有限公司 画面显示方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020180744A1 (en) * 2001-05-31 2002-12-05 Janne Takala Display frame buffer update method and device
CN102486726A (zh) * 2010-12-03 2012-06-06 北京晶智意达科技有限公司 基于Qt的多线程绘图方法
CN102821308A (zh) * 2012-06-04 2012-12-12 西安交通大学 一种多场景流媒体课件录制与直播方法
CN104331262A (zh) * 2014-10-09 2015-02-04 北京配天技术有限公司 基于QT embedded的同步显示方法、系统及数控机床

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230843A1 (en) * 2003-08-20 2004-11-18 Wayne Jansen System and method for authenticating users using image selection
US8379027B2 (en) * 2007-06-20 2013-02-19 Red Hat, Inc. Rendering engine test system
CN101334657B (zh) * 2007-12-20 2010-12-15 清华大学 图形化交互式数控车削自动编程方法及系统
CN102681846A (zh) * 2012-04-26 2012-09-19 中山大学 一种嵌入式多媒体播放系统及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020180744A1 (en) * 2001-05-31 2002-12-05 Janne Takala Display frame buffer update method and device
CN102486726A (zh) * 2010-12-03 2012-06-06 北京晶智意达科技有限公司 基于Qt的多线程绘图方法
CN102821308A (zh) * 2012-06-04 2012-12-12 西安交通大学 一种多场景流媒体课件录制与直播方法
CN104331262A (zh) * 2014-10-09 2015-02-04 北京配天技术有限公司 基于QT embedded的同步显示方法、系统及数控机床

Also Published As

Publication number Publication date
US20180040308A1 (en) 2018-02-08
CN104331262B (zh) 2019-10-29
US10325574B2 (en) 2019-06-18
CN104331262A (zh) 2015-02-04

Similar Documents

Publication Publication Date Title
WO2016054976A1 (zh) 基于QT embedded的同步显示方法、系统及数控机床
WO2011147324A1 (zh) 多接口固态硬盘及其处理方法和系统
TWI681336B (zh) 用於對舊有硬體與軟體進行增強型重新主機代管的系統(三)
WO2016052940A1 (en) User terminal device and method for controlling the user terminal device thereof
WO2014056341A1 (zh) 一种联系人信息查找方法及装置
WO2013149460A1 (zh) 一种Android手持设备连续增量的空中升级方法
WO2013163920A1 (zh) 插入或删除电子表格中单元格或行列的方法及其装置
WO2014109599A1 (en) Method and apparatus for controlling multitasking in electronic device using double-sided display
WO2016019861A1 (zh) 基于QT Embedded系统的字符显示方法和系统
WO2016011826A1 (zh) 云端虚拟服务器的调度方法及装置
WO2015165150A1 (zh) 一种移动设备之间信息转移和共享的方法及系统
WO2019047218A1 (zh) 一种图形化编程方法、装置、计算机存储介质及视觉系统
CN111638862A (zh) 一种多主机多网络共享显示器的切换系统
WO2018000884A1 (zh) 数据展示方法和装置、终端和存储介质
WO2015111867A1 (en) Method of operating touch module and electronic device supporting same
CN110493269A (zh) 一种Web远程Docker容器桌面的方法
WO2018113529A1 (zh) 一种快速查看通知的方法及移动设备
WO2019056734A1 (zh) 一种客户号编码方法、应用服务器、系统及存储介质
WO2016086558A1 (zh) 智能终端信息显示方法及智能终端
WO2016058293A1 (zh) 一种微件widget显示应用的方法及移动终端
WO2015074314A1 (zh) 一种并联显示控制系统中的地址配置方法及装置
WO2018058779A1 (zh) 文件打开方法及系统
WO2015023144A1 (ko) 메모리 공유 환경에서 데이터 무결성 감시 장치 및 방법
WO2019062098A1 (zh) 磁盘阵列的挂载方法、Android设备和存储介质
WO2017054467A1 (zh) 一种实现侧面功能键的方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15849067

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 15553981

Country of ref document: US

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 19.07.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15849067

Country of ref document: EP

Kind code of ref document: A1