Posts

Es werden Posts vom 2014 angezeigt.

Qt5.4 Beta, QtQuickControls and changing Android theme

Bild
Qt5.4 is coming closer...currently, 5.4 is in the Beta state. So today, I downloaded the Beta for Android on Windows and tried some things out.

In a previous post, I showed the new Android-style for the QtQuickControls module. Today, we will look how we could change the theme in a Qt-app on Android.

So, changing the theme....a Qt guru may think this will work with the QPalette class. With QPalette, you can define the background color, text color, ... in a platform-independent way. But QPalette won't be a good choice for Android...

On Android, we're facing a different, but very famous problem: the "Android fragmentation". Qt is supporting a minimum Android SDK version 10, current SDK version is 21 a.k.a. "Lollipop".
(by the way: QtQuickControls style for Android is working for SDK version 11+)
During the SDK version, the style of the native controls changed a lot! So, "native look-and-feel" on SDK v10 is very different than "native look-and-fe…

QtQuickControls style for Android in Qt5.4 - First touch

Bild
With the upcoming release of Qt5.4 in October, developers have now the chance to use QML components with Android-native look-and-feel. As the QWidget-module have an Android style a long time ago, QML and its QtQuickControls-module will follow now!

I compiled the pre-Alpha state of Qt5.4 and take a look at the Android style. So, I compiled these modules for android:

qtbaseqtdeclarativeqtquickcontrols Try it on your own or wait until the Beta release of Qt5.4 (sheduled to 4th September 2014), which will ship out binary installers (no compiling work for you!).
Then, create a simple QtQuick/QML app, which includes some control elements like Button, Slider, Menu, etc. Alternative, you can clone J-P Nurmis's git repo "catalog" (https://github.com/jpnurmi/catalog), a small example app which show every control element. (By the way, J-P Nurmi created the Android style....thanks!)
Hereare two screenshots of my "helloandroid" app on my Amazon Fire HD:



My opinion: it looks …

Qt5 on Windows Phone - Current State

Bild
It's been some time since my last post, today I'm posting again about the state of the Qt-framework on Windows Phone. Remember, Digia and the qt-project are currently working to port their famous C++ framework Qt to WinRT (= Windows Runtime). This port includes to targetting Windows 8 Apps on desktop machines and tablet (including Windows RT on ARM cpus) AND Windows Phone 8.

In december 2013, Digia presented a technology preview of the WinRT port [1]. During this time, only a few parts of the qtbase module worked. But on 27th feburary 2014, they released the Alpha of Qt5.3, with a testable version of the Qml/Quick modules on WinRT. At the same time, they released QtCreator 3.1 Beta, with an experimental version of a QtCreator-WinRT-plugin, which imply: you can develop apps for Windows Phone 8 with QtCreator. So I decided to give it another try!


First, I downloaded the Alpha sources on qt-project.org, but: don't do this! There are to many changes during that release, on the Q…