Qt 5.7 released

  • Qt 5.7 released

    Published Thursday June 16th, 2016
    6 Comments on Qt 5.7 released
    Posted in Biz Circuit & Dev Loop, News, Qt, Releases

    I’m very happy to announce that Qt 5.7 is now available. It’s been only 3 months since we released Qt 5.6, so one might expect a rather small release with Qt 5.7. But apart from the usual bug fixes and performance improvements, we have managed to add a whole bunch of new things to this release.

    Updated licensing

    Before going into the content and all the cool new features, I should mention the changes to our licensing that have been implemented with Qt 5.7.

    Qt has always been available as Free Software, and will continue to be so in the future. Qt is being developed as an open source project, The Qt Company is fully committed to this, and in addition, the agreement with the KDE Free Qt Foundation legally ensures this.

    With Qt 5.7, we are slightly adjusting our licensing of the Open Source version to bring it more in line with the philosophy of the Free Software movement. From this version onwards, Qt will not be available under LGPL version 2.1 anymore. Instead, Qt will be licensed under two main licenses: LGPL version 3 (and GPL version 2) for all almost all frameworks and libraries, and GPL version 3 for our tools like e.g. Qt Creator. In addition, we’re open sourcing some formerly closed Qt add-ons and tools under GPL version 3.

    Please check our our licensing pages or the licensing FAQ for all details around this. You can also have a look at my blog post from January where I announced this change.

    Unifying Qt for Application Development

    The license change gives us a unique opportunity to unify our Qt for Application Development offering between the Open Source and Commercial versions. Starting with Qt 5.7, both packages come with exactly the same content.

    This means that all the parts of Qt for Application Development that previously have been available only to commercial users are now available in the Open Source package as well.

    This includes the following modules:

    Qt Charts (GPLv3)
    Qt Data Visualization (GPLv3)
    Qt Virtual Keyboard (GPLv3)
    Qt Purchasing (LGPLv3)
    Qt Quick 2D renderer (GPLv3)
    The only exception is the Qt Quick Compiler where we need some more time to finish the required changes to be able to support this feature in the Open Source Edition.

    Qt Virtual Keyboard - Now available for GPL Qt users as well!
    Qt Virtual Keyboard – Now available under GPL!

    Qt Charts
    Qt Charts


    It has been possible to use a C++11 compliant compiler together with Qt (and thus use C++11 in your application) for many releases. But Qt itself didn’t make use of it except for some integration points in our API.

    With Qt 5.6 being a long-term release that we will support for three years, we have taken the opportunity with Qt 5.7 to start modernizing our own code base. As one of the core strengths of Qt comes from it being a C++ framework, we want to follow the progress of modern C++ more closely.

    Starting with Qt 5.7, we will require a C++11 compliant compiler to build and use Qt. This allows us to use many of the new features in Qt itself, and renew our codebase using features such as constexpr, move semantics, range-for and auto. These efforts are well under way and will continue throughout the next versions.

    Apart from adding previously commercial-only modules to the Open Source version, we also have quite a bit of new content in Qt 5.7.

    Qt 3D

    We want to provide you the tools to create the required WOW-effect to amaze your end users. Modern UIs in many areas require the integration of 3D graphics, or even creating the whole user experience in three dimensions. In past years we’ve been improving our developer offering to make it easier for you to add this dimension into your UIs. With Qt 5.7, we are bringing in the Qt 3D module. This module has been available as a Technology Preview for two releases now, and I’m happy to announce that it has now reached the state where it is becoming a fully supported member of the Qt family!

    Qt 3D complements the 3D GUI offering of Qt consisting of integration to OpenGL, Qt Canvas 3D, and Qt Data Visualization modules. Qt 3D provides you with a 3D engine, that comes with both C++ and QML APIs. It makes it a lot easier to embed and handle 3D content within Qt Applications. In general, Qt 3D is much more than just a renderer, it serves as an extensible 3D framework for all kind of simulations. The architecture and most of the development on Qt 3D over the past years has been done by our partner KDAB, a huge thanks goes to them for their work. For a proper introduction, please see the guest blog post from Sean Harmer from KDAB.

    Qt Quick Controls 2

    Qt 5.7 also comes with a fully supported version of our new Qt Quick Controls, the library of QML-based UI controls. Qt Quick Controls 1 were targeted at the desktop, and came with all the bells and whistles required for desktop applications. This implied an overhead that often made them too slow for usage on embedded devices.

    Qt Quick Controls 2 solve these issues. They have been built from the ground up with performance and memory consumption in mind. So while they are fully usable on the desktop, they have slightly more limited functionality and e.g. don’t come with native styling integration. But they are vastly faster, and use a lot less memory than the old controls, making them ideal for many embedded and mobile solutions. Qt Quick Controls 1 are still part of the offering and a suitable API for desktop development. For instance, the Qt Quick Layouts work nicely with both of the control sets.

    Architecturally, Qt Quick Controls are based on templates that allow you to create your completely own set of controls ground-up. They also come with a flexible system that allows the rapid creation of custom styles and user experiences. In addition, the existing controls come with three predefined styles:

    Default style – a simple and minimal all-around style that offers the maximum performance
    Material style – a style based on the Google Material Design Guidelines
    Universal style – a style based on the Microsoft Universal Design Guidelines
    For a good overview, more details and a teaser video, please see the blog post from J-P Nurmi.

    New functionality in existing modules

    A lot of new functionality has been added to existing modules, and this blog can’t cover them all. Some of the highlights are:

    Qt Core

    Qt uses poll() instead of select() in it’s event loop allowing for more than 1024 file descriptors
    Qt now uses std::atomic for it’s atomic classes
    Qt Gui

    NEON optimizations for image scaling in Qt Gui
    Optimized the OpenGL function wrappers in Qt for size and speed
    Qt QML and Quick

    JIT support for WinRT, and 64bit ARM platforms in Qt QML, leading to much better QML performance on these platforms
    The debugger now supports debugging multiple QJSEngine instances at the same time
    Improved profiler and inspector integration
    Qt WebEngine

    Qt WebEngine is now based on Chromium 49 and can now print to PDF
    Support for DRM-protected HTML5 video in WebEngine
    Qt NFC

    Support for Android
    For all the details, please have a look at our New Features page and the Changes file for Qt 5.7.

    Qt for Device Creation

    Also Qt for Device creation has received an update and does now ship with Qt 5.7. In this release, we added out of the box support for a set of new hardware:

    The NVIDIA DRIVE CX boards (Tegra X1, 64 bit ARM)
    The Rasberry Pi 3 (32 bit mode)
    i.MX7 based devices (without GPU, uses the Linux framebuffer and the Qt Quick 2D renderer)
    Microsoft Windows is now a fully supported as a host platform for developing for embedded Linux. While Qt for Device Creation 5.7 does no longer support Windows Embedded, we now have full support for QNX, including pre-built binaries.

    To read more about changes in Qt for Device Creation, please see the separate blog post.

    Qt Creator 4.0

    Qt 5.7 ships with Qt Creator 4.0, more precisely with the new Qt Creator 4.0.2 version. Qt Creator 4.0 is a full development environment for all desktop, mobile and embedded development and now with version 4, we’ve especially emphasized the designer-developer workflow with the integration of Qt Quick Designer visual layout editor and the new Qt Quick Controls 2. Together, they provide a really nice way to rapidly create touch-based UIs for your embedded and mobile applications. Check out the separate video about the workflow from this blog post.

    Qt Creator 4.0 also comes with a set of nice new features, such as Clang integration and extended QML profiler, please find the details from the Qt Creator 4.0 blog post. For the updates regarding Qt 4.0.2, please see the change files.

    New Technology previews

    In addition, Qt 5.7 also adds a couple of new modules as Technology Previews.

    The first one is the Qt Wayland Compositor. The module makes it very easy to create your own Wayland Compositor. This is especially useful for embedded devices that require multi process support. The module has existed as unsupported technology for some time, but has had issues in both the API and implementation. With Qt 5.7, we’ve invested a lot of time and effort to clean up implementation and stabilize the API. It now comes with a full QML API and an improved C++ API with a lot of convenience. We also added a convenience API to create Wayland extensions and use them from both QML and C++. You can read more about it from the blog post from Paul.

    The next new module is Qt SCXML. It’s a completely new module that makes it very easy to integrate SCXML based state machines into Qt. It builds directly on top of the Qt Statemachine framework and extends it with with both a SCXML to C++ compiler and a runtime that allows loading SCXML based state machines.

    Qt Gamepad is another nice small addition. It makes it possible to ingrate gamepad support into both C++ and QML applications. It currently supports Windows, Linux, Android and iOS.

    With Qt for Device Creation, we’re also introducing the first preview of Qt-based Over-the-Air (OTA) updates mechanism. For an overview of this crucial IoT-technology, please see the blog post from Gatis.

    Finally, Qt 5.7 also includes a technology preview of the new Qt SerialBus module that allows you to use Qt APIs for device bus communications and protocols. It’s a generic API, but with this version it includes implementations for CAN and Modbus.

    Go and get it

    Finally, I’d like to give my thanks to everybody who has helped create this release. Again, a special thanks goes to KDAB for its tremendous work on Qt 3D.

    You can get Qt 5.7 from your Qt Account or the download page on qt.io.

    For an overview of the Qt 5.7, you can take a look at the release page, or for more details check the change files and known issues.

    Enjoy the release and have a great, Qt-filled summer!

  • 谢谢realfan大大的分享~~~

  • @realfan 有没有网盘分流?

    我要 window + android 的。



  • @tobin 要是用cmake的话,我觉得clion更方便些

  • @tobin 这个界面就是Qt Creator的。很简单。在Qt Creator项目选项卡里,选择构建,有一个CMake选项卡,即是我截图中的效果。

  • T

    @jiangcaiyang 你好,这个我下了,我尝试过用CMake build这个,然后用VS打开是正常的,但我很想在QT Creator 弄OBS。
    首先我不知道你这个界面是在哪弹出来的,看起来有些像CMake的配置界面但又不是,Creator里面也没看到这个界面,我一开始没有找到你这个界面于是就没有设置以来的那个deps,但是在编译错误之后,我手动在CMakeList.txt中设置了 depspath变量,然后build就顺利完成了,可最后运行的时候却又发生了我留言的错误,现在问题依然没解决

  • 上次给大家介绍了萌梦动作编辑器是可以支持插件的,同时也简单介绍了制作一个简单的QML插件以便和萌梦动作编辑器结合起来。那么这次我们介绍一下萌梦动作编辑器支持的另外一种插件格式,那就是C++/QML混合插件,以下我们简称混合插件。








    .qmake.conf # 规定了Qt版本等信息 插件名称.pro # 规定了插件名称等信息 插件名称Plugin.h 插件名称Plugin.cpp # 规定了插件的类型继承自QQmlExtensionPlugin而写的类 插件名称plugin.json # json描述插件的一些信息 插件名称plugin.qrc # 用来包裹qmldir的qrc文件 qmldir # 描述了插件的一些信息




与 萌梦社区 的连接断开,我们正在尝试重连,请耐心等待