原文见:
http://blog.qt.digia.com/blog/2013/02/15/port-to-windows-runtime-kick-started/ Port to Windows Runtime kick-started Published February 15, 2013 | By Friedemann Kleint
With Windows 8, Microsoft introduced a new platform, the
Windows Runtime. On the desktop, the operating system provides 2 modes:
Classic mode: This mode shows the familiar Windowsdesktop known from Windows 7 (with the exception of the start menu), inwhich traditional applications using the Win32 API run. No modificationsare required for Qt 4 or Qt 5-based applications to run in this mode.
Modern UI (formerly known as Metro mode): This is anew type of user interface intended for tablet and phone UIs on whichWindows Store Apps run. These applications use a new API called WindowsRuntime, which is based on the Component Object Model (COM). A similarAPI exists on Windows Phone 8.
Research work on how to port Qt 5 to use Windows Runtime was started by Andrew Knight from Digia and is visible in the
winrt branch of the qtbase repository. Recently, further contributions by Kamil Trzciński were added to it (check out his
blog).Now, with Qt 5.0 out of the door, we would like to kick off thisplatform port. This completes our cross-platform offering in addition tothe ports for the widely used Android and iOS platforms.
We plan to continue development in this branch, aiming for as complete as possible port. Technical details can be found at
here.
The first milestone is to get simple raster windows to be drawn onthe screen. Later, we will investigate porting ANGLE to get OpenGL ES2.0 suppport required for QML2.
Similar to the android branch, the idea is
not to merge thebranch, but later look at it and apply its changes to the dev branch.
To play with the branch, create an environment with a x86 MSVC2012 compiler and configure Qt with:
configure -nomake examples -nomake tests -developer-build -opensource -confirm-license -xplatform winrt-x86-msvc2012
We are also planning on creating a Qt
Creator plugin to supportdeployment. Andrew Knight has already started on it in the winrt branchof his
Qt Creator repository.
The work has still the “Research” status, so, we are not able to giveany release dates yet. We aim to have something ready for the 5.2release. However, since the development happens in the public winrtbranch, the current state is always visible and it is easy toparticipate.
Contributions and help are warmly welcome.
Happy Hacking!