qt5.7釋出了,新特性如下。
<a href="#%e7%ae%80%e8%bf%b0">簡述</a>
<a href="#%e6%96%b0%e7%89%b9%e6%80%a7">新特性</a>
<a href="#c11-support-required-from-the-compiler">c11 support required from the compiler</a>
<a href="#new-features-within-existing-modules">new features within existing modules</a>
<a href="#new-modules">new modules</a>
<a href="#technology-preview-modules">technology preview modules</a>
<a href="#deprecated-modules">deprecated modules</a>
<a href="#removed-modules">removed modules</a>
<a href="#configurations">configurations</a>
<a href="#%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae">安裝配置</a>
<a href="#%e4%bd%bf%e7%94%a8">使用</a>
<a href="#%e6%9b%b4%e5%a4%9a%e5%8f%82%e8%80%83">更多參考</a>
qt has enabled usage of c++11 in qt applications for a long time, but with qt 5.7 we are also enabling use of c++11 in the qt modules. therefore qt 5.7 requires c++11 support from the compiler, and has removed support from older compilers not providing adequate c++11 support.
qt core
added qasconst function to help using non-const qt containers in c++11 range for loops
qt event dispatchers use the poll() function on unix now, making it possible for applications to have file descriptors > 1024
added the ability to convert a floating point to its shortest, exact string form, without having to pre-calculate how many digits that is; qvariant uses this
many clean-ups related to c++11, including using std::atomic as backend for qatomic classes and adding qtypeinfo for char16_t and char32_t
qiodevice now supports multistreaming
qpluginloader now works even if qt_no_library is set (e.g., linking against a static libc)
qt gui
qimage smooth scale optimized for neon.
optimized the opengl function wrappers for speed and code size. qtgui library size has been significantly reduced due to a massive reduction in symbols.
qicon::fromtheme can now use gtk+ icon theme caches for faster icon lookup
qt widgets
qtabbar now delegates placement of tab scroll buttons to the style.
qt style sheets can now optionally let widgets inherit font and palette from their parents.
qt webengine
based on chromium 49
drag’n’drop
printing to pdf
audio played in tab notification.
support for drm-protected html5 video using widevine pepper plugin
api for evaluating javascript or installing qwebchannel in secure isolated javascript worlds
data to make better custom context menus
compile time switch for appstore compatibility on os x
qt qml
added jit support for winrt on x86 and x64.
enabled jit for 64-bit arm linux platforms.
all debug services now work with qjsengine rather than qqmlengine, which allows for non-qml javascript debugging or profiling.
the javascript debug service now supports debugging of multiple qjsengine instances at the same time.
the profiler service can generate much larger traces without running out of memory, and will take much less time to do so now.
custom connectors for debugging and profiling can be loaded with qqmldebuggingenabler::startdebugconnector() now.
the javascript debug service can now evaluate expressions without the qml engine being paused in a breakpoint.
qt quick
the inspector service now supports all subclasses of qquickwindow, which makes qt creator’s inspection feature useful.
embedded platforms
added support for nvidia drive cx boards (tegra x1, aarch64)
added support for the raspberry pi 3 (32-bit mode)
added support for nxp i.mx7-based devices (no gpu; uses linuxfb and the qt quick 2d renderer)
improved theming support with eglfs
desktop platforms
x11: qmenubar uses the unified d-bus appmenu menubar when the desktop environment supports it (e.g. ubuntu unity)
mobile platforms
android: qt can now be used to easily create android services.
qt canvas 3d
new version of three.js
qt nfc
api ported to android.
qt multimedia
added support for tvos.
extended qml playlist api.
qt bluetooth
technical preview for qt bluetooth low energy peripheral role feature (bluez only)
qt sensors
added iio-sensor-proxy backend for linux. it provides light, orientation, and compass sensors.
qt 3d
support for compute shaders on supported hardware
support for loading multi-image dds and ktx textures including cubemaps, mip chains, array textures
improved support for compressed texture formats
render surface made explicit - will later allow for multiple renders of the same scene to different surfaces and other use cases
extended input api and support for device plugins
picking support improved
qt quick controls 2
a new light-weight set of embedded and mobile oriented controls
based on a flexible template system that enables rapid development of entire custom styles and user experiences
built-in styles:
default style - a simple and minimal all-round 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
can be mixed with qt quick controls 1.0, but the apis are not compatible
qt charts
previously commercial-only qt charts module is now included in qt under also gplv3 license for open source users
qt data visualization
previously commercial-only qt data visualization module is now included in qt under also gplv3 license for open source users
qt virtual keyboard
previously commercial-only qt virtual keyboard module is now included in qt under also gplv3 license for open source users
qt purchasing
previously commercial-only qt purchasing module is now included in qt under also lgplv3 and gplv3 license for open source users
qt quick 2d renderer
previously commercial-only qt quick 2d renderer module is now included in qt under also gplv3 license for open source users
qt wayland compositor
pure qml api
improved c++ api with added convenience
new convenient api for making extensions and using them from both qml and c++
qt scxml
completely new module for c++ and qml
static and runtime integration of scxml models into qt code
qt gamepad
new module to process input from gamepads in c++ and qml applications.
supports windows (xinput), linux (evdev), android, ios.
qt serial bus
new module for c++
supports modbus and can bus
the following modules are part of qt 5.6 release, but deprecated and considered for removal in subsequent releases of qt:
qt script
with qt 5.7 the following modules are no longer part of the final release packages:
qt enginio
qt 5.7 has deprecated configurations that do not provide adequate c++11 support. for details, please see qt 5.7 tools and versions in the wiki.
mobile platforms: minimum required versions upgraded to ios 7 and android 4.1
關于qt5.7的安裝配置,請參考之前所寫環境搭建相關的資料:
<a href="http://blog.csdn.net/liang19890820/article/details/49874033">qt環境搭建(visual studio)</a>
<a href="http://blog.csdn.net/liang19890820/article/details/49894691">qt環境搭建(qt creator)</a>
安裝過程中,新添加的子產品(如:qt charts)預設不被安裝,請自行勾選(我一般會全選)。
打開creator,進入:歡迎 -> 示例,我們可以運作新添加的一些子產品示例:
qt charts效果也很棒,效果如下:
效果棒棒哒,看起來不比qwt等其它圖形庫遜色,而且支援qml,後期有時間好好研究一番。
<a href="https://blog.qt.io/blog/2016/06/16/qt-5-7-released/">qt 5.7 released</a>
<a href="https://wiki.qt.io/new_features_in_qt_5.7">new features in qt 5.7</a>