What's New with Qt for Android

栏目: IT技术 · 发布时间: 4年前

Qt 5.15   LTS and Qt for Android

Since  many developers use Qt for Android , we want to improve the develop er  experience.  With the upcoming   release of  Qt 5.15 .0, we have revamped the documentation for  Android. The new documentation has lots of new content on how to use Qt for Android  maximizing  its full potential.  It  explains in more detail how to extend Qt to support more advanced features and  enhance  integr ation with  Android APIs.   

The main topics that ha ve  been improved  in the documentation include :  

  • Extending Qt applications to use custom Java classes or assets and the packaging structure.  
  • Dependency version management between the Android Native Development Kit ( NDK )   and Qt.   
  • How to work  with Android  s ervices in  a multitude of  different ways.  
  • How to b uild   and us e  OpenSSL with Android.  Dependencies between the  OpenSSL repository  supports all Qt versions, both with  QMake  and  CMake .  

In the same context, many Qt examples that had some issues such as layout, scaling, or permissions, has been fixed. Qt 5.15 .0  Qt Android Extras comes with a new  code  example  Qt J ava  N ative  I nterface  Messe n ger (Qt JNI Messenger) . The  example  demonstrates one of the most important topics when using Qt for Android, which is JNI communication. It explains the workflow of invoking methods and exchanging data between Java  and  Qt. The example serves as a starting point for bridging Qt and Android both ways.  

New to Qt for Android? Check out my recent ‘Getting started with Qt for Android’   on-demand webinar  from the  Qt Virtual Tech Con 2020  

E nsur ing   proper  integration with Android, the Android native file dialog  can now be used  by default  by  opening file(s) and saving operations. The native file dialog also uses  Android’s   ‘content’ file  scheme and  conducts   additional  exception checks ,  which  in the past has  cause d   some occasional  crashes. The AndroidManifest.xml no longer sets  minSdkVersion  and  targetSdkVersion  values . I nstead,  you can  set   the with the  build.gradle  file. Android Studio  will provide a warning  about setting SDK versions in the manifest file. For more information, see the  Manifest documentation .  

For the full list of changes, see  Platform Changes in Qt 5.15.0 .  

Qt Creator 4.12

The latest release   of Qt Creator   brought   substantial   improvements   for   Android development. Qt Creator can   now automatically setup   for Android SDK ,   which is the main block for building and running Qt for Android applications. It   prompts you   to install the   needed   packages for development. Furthermore, using OpenSSL in your applications   is now more straightforward   with Qt Creator ,   allowing you to set up your local path for the library and use it with any project from the kit settings.

One of the   essential   features   of Qt for   Android support   was the   lac k of   managing Qt and NDK versions.   In the past,   Qt Creator   could only have   one valid NDK at a given time, which can be troubling when dealing with multiple Qt versions and projects. Qt for Android versions rel ied   on   the   different NDK versions, and it was up to the developer to   select   and switch to the   correc t version manually.   That is why   we introduced a way to manage multiple Qt versions and couple each of them with the appropriate NDK version. Qt Creator keeps track of this using a common configuration file. Additionally, it is possible to use custom NDK paths as desired.

What's New with Qt for Android

Some  other changes we have made  include the examples list for Android kits showing examples that are tested and known to work on Android devices. The examples that are not shown by default include those that have unsupported features or modules on Android ,  for example. Also, improvements to the UI design and functionality included the  AVD Manager which got some flexibility for creating AVDs, as well as the  Manifest Editor s  icon selection.  

For the full list of changes, see  Qt Creator 4.12 Android changes .  

Looking Ahead  

To serve Qt mobile users well, we are going to introduce m any more updates  for   supporting  Android.  We will create  more examples, documentation, and functionality ,  paving the way for easy and advanced development  targeted  for Android. Stay tuned for brighter Qt for Android future.  

To access all the new features with Qt for Android, download the latest version via our  downloads page  or update through the maintenance tool.     


以上所述就是小编给大家介绍的《What's New with Qt for Android》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C# 6.0本质论

C# 6.0本质论

[美] Mark Michaelis(马克·米凯利斯)、[美] Eric Lippert(埃里克·利珀特) / 周靖、庞燕 / 人民邮电出版社 / 2017-2-1 / 108

这是C#领域中一部广受好评的名作,作者用一种易于理解的方式详细介绍了C#语言的各个方面。全书共有21章和4个附录(其中哟2个附录从网上下载),介绍了C#语言的数据类型、操作符、方法、类、接口、异常处理等基本概念,深入讨论了泛型、迭代器、反射、线程和互操作性等高级主题,还介绍了LINQ技术,以及与其相关的扩展方法、分部方法、Lambda表达式、标准查询操作符和查询表达式等内容。每章开头的“思维导图”......一起来看看 《C# 6.0本质论》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具