Chromium is the open source project that powers the Chrome browser. It is not only an HTML renderer, but it also comes with a complete implementation of the web platform - from the network stack up to the multimedia framework.
Just like Qt, it is available on multiple desktop and mobile platforms. So what if Qt developers want to make use of it in the universe of Qt?
Well, for the past few weeks we have actually been busy experimenting with exactly that.
Today we would like to present the prototype of our work, that demonstrates the integration of Chromium into QtQuick2 and Widgets.
Cross platform support was not the main focus for this prototype though. Instead we tried to keep our changes to Chromium to a minimum.
This is why we are using gyp and ninja as a build system for this project - nicely wrapped in a qmake project.
Just try it out for yourself, and send us feedback. To build and run the examples simply follow the instructions below.
However, keep in mind that this is currently only a prototype for the sake of experimenting. There is no stable API and no promise of future support.
To be able to build and run the prototype you must have a recent build of Qt5 (v5.1.0-rc1).
Installing the build dependencies on Ubuntu:
sudo apt-get build-dep chromium-browser
Install the Chromium depot_tools and fetch the Chromium sources (this might take a while):
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fetch chromium --nosvn=True
Clone the QtWebEngine repository and apply our Chromium patches:
git clone git://gitorious.org/qt-labs/qtwebengine.git
cd qtwebengine && qmake && make
The QtWebEngine repository contains two example applications. One of them uses QtQuick2 and the other one uses Widgets. The examples are very simplistic web browsers using a Chromium based webview.
Both implementations can be found in the examples subdirectory and can be executed from the command line.
Chromium is a trademark of Google Inc.
Stay up to date with the latest marketing, sales and service tips and news.
Download the latest release here: www.qt.io/download.
Qt 5.12 was developed with a strong focus on quality and is a long-term-supported (LTS) release that will be supported for 3 years.
Näytä tämä julkaisu Instagramissa.
Want to build something for tomorrow, join #QtPeople today! We have loads of cool jobs you don’t want to miss! http://qt.io/careers #builtwithQt #software #developers #coding #framework #tool #tooling #C++ #QML #engineers #sales #tech #technology #UI #UX #CX #Qt #Qtdev #global #openpositions #careers #job
Henkilön Qt (@theqtcompany) jakama julkaisu