Thread
:
QT5 on nokia n900 ?
View Single Post
frafI
2013-08-05 , 17:05
Posts: 114 | Thanked: 298 times | Joined on Jan 2011 @ Berlin
#
84
Big update:
new wiki hierarchy, see
http://wiki.maemo.org/Qt5-Maemo5
debs are available in the repo (see wiki), no need to unpack tars any more
all builds are performed from within scratchbox, so you can use Qt5 in the same way as Qt4 from scratchbox
QtMaemo5 module and QMaemo5Style (now part of the module) ported to Qt5 (but Maemo5 style is not the default style!), so widget based Maemo5 Qt4 apps may be ported with fewer efforts
In the aforementioned qt-project thread someone mentioned a similar problem to the QtQuick Text item bug while debugging on Windows. The poster promised to provide some example soon.
My repo (see wiki) also contains some test apps. You may suggest more apps, but they either have to be Qt5 apps or you must send me the ported source code. Currently there's only a widget based desktop build of trojita (package name trojita-tp). Try it with different -style and -stylesheet options.
I'll not have much time during the next 2-4 month, so development will slow down.
Some details for the further interested:
Don't use QMaemo5Style directly as this now requires the private headers (e.g. QT += widgets-private in your .pro file). The package qt5-maemo5 contains a style plugin in the next version, so use QStyleFactory::create("maemo5") instead of QMaemo5Style();
Porting the required QGtkStyle (see
repo
) back to gtk 2.14 (vanilla Qt5 claims it would need 2.18) was a matter of replacing function calls with macro calls. The way Qt loads the library functions from Gtk2 is quite interesting: Qt requests pointers to functions and call those functions later, without checking for null pointers. So an old Gtk2 version causes no compile time errors and the application silently segfaults. Since most of the required gtk calls are present, simple example apps even worked before I backported to older gtk, because the null pointers were simply not called at all.
__________________
Qt5 on N900
m.c. flatboat - a mobile pdf viewer
Hörspielkiste
Last edited by frafI; 2013-08-05 at
17:34
.
Quote & Reply
|
The Following 13 Users Say Thank You to frafI For This Useful Post:
cproc
,
edgar2
,
enne30
,
Estel
,
freemangordon
,
fw190
,
jcharpak
,
marmistrz
,
MartinK
,
mrsellout
,
nodevel
,
nokiabot
,
OVK
frafI
View Public Profile
Send a private message to frafI
Visit frafI's homepage!
Find all posts by frafI