Es werden Posts vom 2017 angezeigt.

Using QtOpenCL with Qt5

In the age of Qt4, there was an experimental support for easily using OpenCL together with Qt: QtOpenCL. These days, you normally using Qt5 for your projects and unfortunately, QtOpenCL was not supported with Qt5.

I'm happy to annouce that you can now use the original QtOpenCL module together with Qt5. The changes have been quite easy, I just had to transfer it to a Qt5 module from *.pro-files point of view.

QtOpenCL internally consists of two sepereate modules: QtOpenCL and QtOpenCLGL. The first is for general OpenCL usage, the second one can be used for mixing OpenCL and OpenGL.

Build the module # git clone
# cd qtopencl
# qmake
# make
# make install
Using the moduleAdding the module to your *.pro file:
# ...
# QT += opencl
# ...

You then can use the QtOpenCL headers by #include <QtOpenCL/...>.

Using the examples/demos You will find several examples inside the QtOpenCL module. vectoradd is a good starting point, it shows a minimal QtOpenC…

Introducing QtLocalAuthenticator

You are creating a mobile application with Qt and want to secure the access to some content? You want to use the Touch ID on iOS based devices? Then you should take 2 minutes and read on :)

QtLocalAuthenticator I have created a small git repository with a Qt C++ module and a QML module around the native LocalAuthentication class [1]:
What is possible: C++ and QML supportsetting the authentication policy: biometric and password OR just biometricsetting the authentication reasion: shows a text to the user why you want to use the authenticationcheck if the device supports the authentication policies, e.g. check if Touch ID is available How to use? Clone or download the code, open a terminal and switch to the source code location. Then, compile and install the modules:
[<Path-To-Qt-Installation>/bin/]qmake make make install
If you have an existing QML application, import the module:
import jsee23.authenticator 0.1
Then, use the LocalAuthentic…

Building QtWebKit Technology Preview 5 from Sources

Updates for the QtWebKit module were dropped by the Qt Company after switching to the Blink-/Chrome-based QtWebEngine module. After years of development, there is still a lack of features that where available in the original QtWebKit module.

Because of different reasons, some guys started to update the QtWebKit module with fresh code from the WebKit repositories. What you don't expect: WebKit is really alive and has implemented a bunch of new web features.

Last week, the Technical Preview 5 was released [1]. It should be compatible with any recent Qt5 version, in the following chapters you will see how to build it from source or how to use the pre-built binaries for Qt5.8.

1. Build QtWebKit TP5 from sources
1.1. download & extract QtWebKit TP5 sources
The release page of QtWebKit TP5 contains the source code package for building the module by yourself. Download it [2].

On Mac  & Linux, extract the sources and change to the directory:
$ tar xf qtwebkit-tp5.tar.xz
$ cd qtwebkit-…