Implementation method and system for Android native and QT mixed development

A native and development framework technology, applied in the implementation method and system field of Android native and QT hybrid development, can solve the problem of not being able to display the QT interface on the same screen, and achieve the effect of achieving diversity and satisfying visual experience

Active Publication Date: 2021-06-01
ZHENGZHOU XINDA JIEAN INFORMATION TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problem that the existing QT development cannot display the QT interface and the Android native interface on the same screen, the present invention provides a method and system for implementing mixed development of Android native and QT

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
  • Implementation method and system for Android native and QT mixed development
  • Implementation method and system for Android native and QT mixed development
  • Implementation method and system for Android native and QT mixed development

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the present invention Examples, not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0036] Such as figure 2 and image 3 As shown, the embodiment of the present invention proposes a kind of implementation method of Android native and QT mixed development, and described method comprises the following steps:

[0037] S101: Predetermining the size and positional relationship between the QT interface and the Android native interface displayed in the same Activity...

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

PUM

No PUM Login to view more

Abstract

The invention provides an implementation method and system for Android native and QT mixed development. The method comprises the steps that 1, the size and position relation of a QT interface and an Android native interface displayed in the same Activity are determined in advance; 2, when the Activity of the application is created, a layout file is set in a user-defined mode based on the size and the position relation, and the overall layout Layout is divided into a sub-layout Layout to which a QT interface belongs and other sub-layouts Layout; 3, in the QT initialization process, a Surface is created based on the Android system environment, and the created Surface is attached to a sub-layout Layout to which a QT interface belongs; 4, at least one QT interface is developed through the QT framework, and the at least one QT interface is displayed on the Surface; and at least one Activity is developed through an Android native development framework, and the Surface of the QT to a sub-layout Layout is associated to which a QT interface corresponding to the at least one Activity belongs. According to the method, the QT interface and the Android native interface can be displayed on the same Activity, and picture fusion is realized.

Description

technical field [0001] The invention relates to the technical field of application program development, in particular to a method and a system for realizing mixed development of native Android and QT. Background technique [0002] With the development of automobiles, QT is more and more widely used in the field of vehicle systems. It is mainly used in the development of automotive instrumentation, infotainment systems, and rear entertainment systems. QT has certain advantages in developing 3D applications compared to native Android development. advantages; Android native development has wider applicability, and many third-party libraries only provide libraries for Android native development; if the two are used in combination in application development, and each completes different functions, it can not only improve development efficiency, And combining QT's advantages in 3D can achieve more cool effects. [0003] The existing QT itself is cross-platform and can be transpla...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 谭帅郭卫斌马骥王佳王超王平
Owner ZHENGZHOU XINDA JIEAN INFORMATION TECH
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