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
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
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
???
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
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
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
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
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
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:
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:
10 matches
Mail list logo