QT 5.0.0 发布(编译)

近来一直关注QT5.0的发展情况。从Nokia宣布QT5.0计划并发布早期的版本,到Digia公司的RC1、RC2。今天早晨收到邮件提示,5.0.0终于发布了。下载下来试试看,地址:http://qt-project.org/downloads。
现在我们重温Digia的QT5.0的改进:

Qt 5 is the latest version of Qt. It enables developers to develop applications with intuitive user interfaces for multiple targets, faster than ever before. Qt 5 makes it easier to address the latest UI paradigm shifts that touch screens and tablets require.
最新版的Qt 5使得开发者可以更加直观、快速的调用接口开发各种应用,从桌面应用到触屏的切换也更加容易。

Developers can be more productive and flexible with the improved support for JavaScript and QML in Qt 5, while still having the C++ foundation and Qt Widget support. The JavaScript backend powered by V8 and Qt WebKit 2 will make HTML5 developers feel at home.
对JavaScript与QML的支持,同时保持了C++、Qt Widget的支持。

Qt 5 is highly compatible with Qt 4. It is possible for developers of Qt 4 applications to seamlessly move on to Qt 5 with their current functionality and gradually develop new things leveraging all the great items Qt 5 makes possible.
与Qt 4高度兼容,更加平滑的实现4-5的迁移。

Cross-platform portability is made simpler in Qt 5, thanks to the new modularized codebase consisting of the essential and add-on modules, and the consolidation of the Qt Platform Abstraction.
跨平台移植性更加容易。

The following sections summarize some of the key features that Qt 5 brings to the table.

以下总结QT 5的几个主要特点:

1 Amazing Graphics Capability and Performance

惊人的图形能力与性能
Qt 5 uses an OpenGL based scene graph to accelerate the graphics of Qt Quick, making it possible to do visually appealing user interfaces with animations, impressive graphical effects and particle systems, even on the constrained hardware environments of mobile and embedded devices. 
基于OpenGL的scene graph加速Qt Quick的图形显示,可使用更具有视觉吸引力的用户接口进行动画显示,更炫的视觉效果,支持粒子系统,甚至在移动前入式的受限硬件环境下。

2 Qt Quick in Qt 5
Qt Quick provides the necessary infrastructure to develop QML applications. The latest version (v2.0) of this technology also introduces a set of new C++ classes as a replacement for the QDeclarative* equivalents in Qt Quick 1. 
Qt Quick 提供了开发QML应用程序必须的基础。该技术最新版本引入了一套新增C++类以替换QDeclarative。
New features in Qt Quick include:
新特性包括:
Canvas for drawing. Canvas provides an API that is similar to the HTML5 Canvas API, along with some additional features.(canvas绘图)
Shader Effects which enable GLSL shader programs to be integrated directly into QML code and applied to items and images.(GLSL 语言的支持)
Particle Effects for creating a variety of 2D particle systems.(二维粒子系统)
Sprites can be used in animating 2D graphical objects and as a source for particle systems.(Sprites,动态二维对象,可用在粒子系统)
Offline storage is a HTML5 Web Database API conformant JavaScript API for storing data in Qt Quick applications.(离线存储)
Window provides a top-level window and the Screen type for accessing a screen's resolution and other details. This is useful for desktop applications developed using Qt Quick.
New rendering architecture based on OpenGL for optimal performance.(新的基于OpenGL的渲染架构以性能优化)

3 WebKit and HTML5
Qt WebKit is a web content rendering engine based on the open source WebKit project featuring broad support for standard web technologies. The Qt WebKit module provides integration with both Qt Quick and traditional widgets. The module brings the latest in HTML5 advancements to Qt 5, including CSS filters and animations and Video, Canvas and WebGL, Canvas support and HTML video.
基于WebKit projec的web内容渲染引擎,支持标准的web技术。webkit模块提供了Qt Quick 与传统widget的集成。该模块为Qt 5带来了CSS过滤、动画、Video,Canvas与WebGL、HTML video支持。

4 Multimedia
Qt Multimedia provides a rich set of QML types and C++ classes to handle multimedia content. It also provides necessary APIs to access the camera and radio functionality. Qt 5 brings the Qt Multimedia module into the set of essential modules with support on all major platforms.
多媒体支持,如相机、收音机功能

5 Modularized Qt Libraries
Qt 5 splits the Qt libraries into domain specific libraries and modules. This means that an application can choose which libraries it requires and only compile, use and deploy those.
库的分解,从而减少application的体积

6 Widgets in Qt 5
The Qt Widgets have been separated into their own module in Qt 5, the Qt Widgets module. It is part of the essential modules.

7 Qt Platform Abstraction
The windowing system dependent parts of Qt have been completely rewritten for Qt 5, based on the Qt Platform Abstraction, a plugin architecture which allows Qt to dynamically load a windowing system integration based on what system it is running on. This gives several benefits:
Centralize the windowing system integration codebase into classes shared for all platforms.
Simplify the work required when porting Qt to new platforms.
Remove the windowing system dependency from Qt, making it possible to have the same Qt binaries run against multiple windowing systems. For instance, the Qt Linux binaries can run against both X11 and Wayland.

更好的平台抽象能力

8 New Connection Syntax

新的信号槽连接语法,支持函数指针
In addition to the still available well known way to connect signals and slots, new overloads of QObject::connect have been added allowing you to connect signals and slot using pointer to member functions:
QObject::connect(sender, &Sender::valueChanged, receiver, &Receiver::updateValue);
The new syntax provides compile time checking of the compatibility between signals and slots, automatic conversion of the arguments if there is an implicit cast between the types, and solve many problems occurring because of typedef or namespaces.
Additionally, if your compiler supports C++11 lambdas, you can even connect directly to a lambda function.

支持lambda表达式


9 Connectivity and Networking
Qt 5 provides better support for IPv6 and dual mode networks. Most applications using host names and network layer transparent protocols can now gain IPv6 support transparently. Such applications can also choose to receive both IPv4 and IPv6 conections or bind to only one of the two connection types. In the case of outgoing HTTP connections using QNetworkAccessManager, both IPv4 and IPv6 connections are attempted in parallel, and the one that succeeds first is used. This is useful in environments where one of the two types has limited connectivity.
Qt 5 also provides better ways to handle TCP socket-based connections and SSL certificates. This means developers can now:
bind a TCP socket to an IP address before connecting,
verify an SSL certificate chain,
and access legacy systems.

更好的支持IPv6,更灵活的TCP socket连接。

编译:

可以直接下载: qt-vs-addin-1.2.0-opensource.exe,qt-windows-opensource-5.0.0-msvc2010_32-x86-offline.exe来使用,也可以从新编译。

编译前预先安装python与activeperl,并下载win_flex,解压后拷贝至perl的bin目录下,并将win_flex.exe与win_bison.exe分别拷贝到当前位置,修改命名为flex.exe与bison.exe。

编译时从qtbase开始,这里有configure.exe文件(如果没有,在qtbase下创建.gitignore(cmd)这个文件夹).


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值