Method and device for automatic update in qt program

An automatic update and program technology, which is applied in the field of computer programs, can solve the problems of frequent verification updates, update programs that cannot be updated, does not involve modular updates, update file verification update level mechanism, etc., to improve update efficiency and reduce update effect of complexity

Active Publication Date: 2019-04-05
南方电网互联网服务有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the general update is simply to overwrite the new version file directly from the server to the local file, and does not involve the handling of special cases such as modular update, update file verification, and update level mechanism. Yes, as long as the main program is started, the update check is performed, and the update is frequently verified.
In addition, for general updates, the update information file structure is too complicated, and the update program cannot update

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for automatic update in qt program
  • Method and device for automatic update in qt program
  • Method and device for automatic update in qt program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] See attached figure 1 The method for automatically updating in the QT program provided by Embodiment 1 of the present invention includes the following steps:

[0080] Step 101: Obtain an update information file;

[0081] In this embodiment, the update information file is a JSON format file, and the tree structure of the JSON format file includes three layers; wherein, the first layer is the update information layer, and the information that the update information layer is used to save includes version number, update time, suggestion Version number, update size; the second layer is the module information layer, and the information stored in the module information layer includes module name, version number, and size; the third layer is the update file information layer, and the information stored in the update file information layer includes File name, file MD5 value, file path. Among them, the file in JSON format is the most efficient. Designing the file as a three-lay...

Embodiment 2

[0106] See attached figure 2 The device for automatic update in QT program provided by Embodiment 2 of the present invention includes an update information file acquisition unit 201 , a decompression unit 202 , a file analysis unit 203 , a comparison and judgment unit 204 , and an update unit 205 . The update information file acquisition unit 201 is used to obtain the update information file; the decompression unit 202 is used to decompress the update information file to obtain the decompressed update information file; the file analysis unit 203 is used to analyze the decompressed update information file to obtain The updated information file through analysis; the comparison and judgment unit 204 is used to judge whether the corresponding local information needs to be updated by comparing the updated information file and the corresponding local information through comparison: when the result of the comparison and judgment unit 204 is that it needs to be updated, the update uni...

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

PUM

No PUM Login to view more

Abstract

The present invention relates to the technical field of computer programs, and particularly relates to an automatic update method and device for a Qt program. The method comprises: acquiring an update information file (101); determining, by means of comparing a parsing result of the update information file against corresponding local information, whether the corresponding local information needs an update (104); if so, then initiating an update to overwrite the corresponding local information with an update file (105); and if not, then preserving the local information. The device of the present invention can be employed to implement the above method. The method and device of the present invention improve update efficiency and reduce update complexity.

Description

technical field [0001] The invention relates to the technical field of computer programs, in particular to a method and device for automatic updating in a QT program. Background technique [0002] The Qt program is a cross-platform C++ graphical user interface application development framework, which can be used to develop both GUI programs and non-GUI programs, such as console tools and servers. Qt programs are object-oriented frameworks, using special code generation extensions, and some macros, which are easily extensible, allowing components to become. After the Qt program is developed and released, there will be an automatic version update function. However, the general update is simply to overwrite the new version file directly from the server to the local file, and does not involve the handling of special cases such as modular update, update file verification, and update level mechanism. The update check is performed as long as the main program is started, and the u...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/65
CPCG06F8/65
Inventor 徐超
Owner 南方电网互联网服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products