From: antonio.cano.go...@ovi.com
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi Andrey,
The output is: ReferenceError: bloomfilterdata is not defined
I am calling it from a .js
Some idea about how can I make that this is also defined
...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org]
on behalf of antonio.cano.go...@ovi.com [antonio.cano.go...@ovi.com]
Sent: Thursday, February 27, 2014 12:17 PM
To: Sylvain B.; Sailfish OS Developers
Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi sylvain
Hi,
On 25.02.2014 15:06, antonio.cano.go...@ovi.com wrote:
An I try to connect this with my sailfish application with the code:
QGuiApplication *app = SailfishApp::application(argc, argv);
QQuickView *view = SailfishApp::createView();
Bloomfilters * bloomfilters = new Bloomfilters();
Yes, it helped thanks.
My problem now is different.
I have some private attributes in my C++ object.
When I call the first tiem I can modify the attributes, but in the second call
the attributes dessapear.
Is there a way to solve this problem?
(The attributes a new C++ Object not declared as
Antonio
Can you provide a code example, and the exact error(s) that you get.
Chris
Zitat von antonio.cano.go...@ovi.com:
Yes, it helped thanks.
My problem now is different.
I have some private attributes in my C++ object.
When I call the first tiem I can modify the attributes, but in the
: what exactly isn't working?
Date: Tue, 25 Feb 2014 16:31:13 +0100
From: mikel...@gmail.com
To: antonio.cano.go...@ovi.com; devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish
I think you need to add a qRegisterMetatype() to be able to invoke
On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote:
I tried this:
QGuiApplication *app = SailfishApp::application(argc, argv);
QQuickView *view = SailfishApp::createView();
Bloomfilters * bloomfilters = new Bloomfilters();
Hi,
Try creating Bloomfilters class instance before declaring view, and store
app and view either to qscopedpointer or qsharedpointer.
/Mikko
2014-02-26 13:15 GMT+02:00 antonio.cano.go...@ovi.com:
Hi Thomas,
I did both modification but the code does not work yet.
Here is the new code:
Hi Andrey,
The output is: ReferenceError: bloomfilterdata is not defined
I am calling it from a .js
Some idea about how can I make that this is also defined there.
Thanks!
El Miércoles 26 de febrero de 2014 12:18, Andrey Kozhevnikov
coderusin...@gmail.com escribió:
start app in
Yes, add a sYou declared bloomfiltersdata and you are trying to use
bloomfilterdata...
Date: Wed, 26 Feb 2014 04:02:22 -0800
From: antonio.cano.go...@ovi.com
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish
Hi Andrey,
The output
Hi Antonio
This works for me:
//Start BloomfiltersDemo.cpp
#ifdef QT_QML_DEBUG
#include QtQuick
#endif
#include sailfishapp.h
#include bloomfilters.h
int main(int argc, char *argv[])
{
QGuiApplication *app = SailfishApp::application(argc, argv);
QQuickView *view =
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
To: antonio.cano.go...@ovi.com; devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish
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
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:
18 matches
Mail list logo