Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread Luciano Montanaro
I think you need to add a qRegisterMetatype() to be able to invoke methods from qml. On Tue, Feb 25, 2014 at 3:06 PM, antonio.cano.go...@ovi.com wrote: Hi, I am trying to do a simple Sailfish aplication that uses a c++ library. I try to connect my qml code with the C++ code. First I

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread J-P Nurmi
On Tue, 2014-02-25 at 06:06 -0800, antonio.cano.go...@ovi.com wrote: Hi, I am trying to do a simple Sailfish aplication that uses a c++ library. I try to connect my qml code with the C++ code. First I create QObject extended library: #ifndef BLOOMFILTERS_H #define

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread martin . grimme
Hi, you should set the context property after loading the QML source. Then it ought to be available from QML. Martin Am Tue Feb 25 2014 15:06:39 GMT+0100 (CET) schrieb antonio.cano.go...@ovi.com: Hi, I am trying to do a simple Sailfish aplication that uses a c++ library. I try to connect

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread Andrey Kozhevnikov
??? contextProperty should be set BEFORE loading QML source. On 25.02.2014 21:33, martin.gri...@gmail.com wrote: Hi, you should set the context property after loading the QML source. Then it ought to be available from QML. Martin Am Tue Feb 25 2014 15:06:39 GMT+0100 (CET) schrieb

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread christopher . lamb
Hi Antonio Here is a simplified example from one of my projects, showing a number of ways to expose C++ to QML. I tend to use qmlRegister when exposing C++ objects with methods, and SetContextProperty when I want to expose simple stuff like global constants only. I do things that

Re: [SailfishDevel] uinput with maliit at sailfishapps

2014-02-25 Thread Mikael Hermansson
Notice this is also what happens in emulator when using real keyboard there. Seems not all keys are mapped correcly in wayland input driver or something... On Monday 24 February 2014 22.36.07 Kimmo Lindholm wrote: I know... we are in progress with that too... they were really busy getting

[SailfishDevel] Gui and Kernel app

2014-02-25 Thread Randolph
Hi there one question for sailfish. When a Qt app with gui and kernel are compiled to android, then android has two apk installers, one for gui and one for kernel. But both cannot communicate in android, as this OS does not allow the communication of one app with the other. Qt 5.4 might solve this

Re: [SailfishDevel] Gui and Kernel app

2014-02-25 Thread Andrey Kozhevnikov
Sailfish is GNU Linux, not Android. Why you need two packages? On 26.02.2014 02:43, Randolph wrote: Hi there one question for sailfish. When a Qt app with gui and kernel are compiled to android, then android has two apk installers, one for gui and one for kernel. But both cannot communicate

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread Sylvain B .
No, I am able to invoke c++ methods from QML while having exposed them the exact same way. The only difference would be that my constructor is a simple Bloomfilters(). So same question than J-P: what exactly isn't working? Date: Tue, 25 Feb 2014 16:31:13 +0100 From: mikel...@gmail.com To:

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread Martin Grimme
2014-02-25 16:39 GMT+01:00, Andrey Kozhevnikov coderusin...@gmail.com: ??? contextProperty should be set BEFORE loading QML source. You're right, sorry! I must have confused something. I shouldn't answer mails while on train. :) Martin On 25.02.2014 21:33, martin.gri...@gmail.com wrote: