Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

Qt for Android - Necessitas

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

Is it possible to use Necessitas (Qt for Android) with Lazarus? I mean if anyone tried or if it could work :)
it's simply curiosity (for now: I don't have android devices)

Regards,
Kjow

Reply by email

Felipe Monteiro de Carvalho
to Kjow

I don't think anyone has seriously tryed.

An interesting interview about necessitas: http://www.behindkde.org/node/925

It seams quite interesting, seams that he used the Surface API and custom-draws widgets. I bet it will have serious issues with all the wierd virtual keyboards and fonts one can find out there in various devices.

Felipe Monteiro de Carvalho

Reply by email

Michael Schnell
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
It seams quite interesting, seams that he used the Surface API and custom-draws widgets. I bet it will have serious issues with all the wierd virtual keyboards and fonts one can find out there in various devices.

Besides the GUI, Android encapsulates multiple Phone-specific functions and provides the as a high level Java-based API (such as dialing, GPS, ...) How to access same when doping a native code application with a QT GUI ?

-Michael

Reply by email

Felipe Monteiro de Carvalho
to Michael Schnell
Michael Schnell wrote
Besides the GUI, Android encapsulates multiple Phone-specific functions and provides the as a high level Java-based API (such as dialing, GPS, ...) How to access same when doping a native code application with a QT GUI ?

There is something called Qt Mobility which should be an abstract API around generic phone features. At the moment it isn't implemented for Android, but in a unknown future it could be.

At the moment you need to call the Java APIs, which for C++ apps actually means that the Java part of the application needs to do those calls.

Android Qt apps are not 100% native, they also need a Java side. The objective here was being able to write the GUI in C++, therefore requiring less Java, not removing the Java side (which is impossible).

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho
Michael Schnell wrote
Is there already a C++ library plus the appropriate "standard" Java stub-set for C++ ?apps that are supposed to run on Android via QT ??

Yes.

Will there be ?a Lazarus "Widget Type", and a set of LCL API calls plus the appropriate "standard" Java stub-set for fpc ?apps that are supposed to run on Android via QT ?? :-)

It might exist when someone contribute that =)

Note that at the moment I am working only in Pascal apps which use the Android API.

Felipe Monteiro de Carvalho

Reply by email

Michael Schnell
to Felipe Monteiro de Carvalho: There is something called Qt Mobility which should be an abstract API around generic…
Felipe Monteiro de Carvalho wrote
Android Qt apps are not 100% native, they also need a Java side.

I supposed it would be this way.

Is there already a C++ library plus the appropriate "standard" Java stub-set for C++ apps that are supposed to run on Android via QT ?

Will there be a Lazarus "Widget Type", and a set of LCL API calls plus the appropriate "standard" Java stub-set for fpc apps that are supposed to run on Android via QT ? :-)

Thanks,
-Michael

Reply by email

Kjow
to Felipe Monteiro de Carvalho: I don't think anyone has seriously tryed. An interesting interview about necessitas:…

2011/5/17 Felipe Monteiro de Carvalho :

Show quoted text 11 lines
I don't think anyone has seriously tryed. An interesting interview about necessitas: http://www.behindkde.org/node/925 It seams quite interesting, seams that he used the Surface API and custom-draws widgets. I bet it will have serious issues with all the wierd virtual keyboards and fonts one can find out there in various devices. -- Felipe Monteiro de Carvalho

Thanks, it would be very interesting with Lazarus.

Regards,
Kjow

Reply by email