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

2014-02-27 Thread christopher . lamb
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

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

2014-02-27 Thread antonio . cano . gomez
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

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

2014-02-27 Thread Stefan Brand
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(); view->

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

2014-02-27 Thread antonio . cano . gomez
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, > >This is not the case

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

2014-02-27 Thread Jonni Rainisto
...@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, This is not the

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

2014-02-27 Thread antonio . cano . gomez
rdata... > > > > > >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

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

2014-02-26 Thread christopher . lamb
Hi Antonio This works for me: //Start BloomfiltersDemo.cpp #ifdef QT_QML_DEBUG #include #endif #include #include "bloomfilters.h" int main(int argc, char *argv[]) { QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloom

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

2014-02-26 Thread Sylvain B .
Yes, add a "s"You 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 An

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

2014-02-26 Thread Harald Schmitt
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: antonio.cano.go...@ovi.com; devel@lists.sailfishos.org > > Subject: Re: [SailfishDevel] QML C++ Integration

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

2014-02-26 Thread antonio . cano . gomez
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 escribió: start app in terminal and show output plea

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

2014-02-26 Thread Mikko Leppänen
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 : > Hi Thomas, > > I did both modification but the code does not work yet. > > Here is the new code: > > > QGuiApplic

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

2014-02-26 Thread Andrey Kozhevnikov
start app in terminal and show output please On 26.02.2014 17:15, antonio.cano.go...@ovi.com wrote: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = Sailfish

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

2014-02-26 Thread antonio . cano . gomez
Hi Thomas, I did both modification but the code does not work yet. Here is the new code:     QGuiApplication *app = SailfishApp::application(argc, argv);     QQuickView *view = SailfishApp::createView();     Bloomfilters  * bloomfilters = new Bloomfilters();     view->rootContex

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

2014-02-26 Thread Thomas Perl
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(); view->setSource(SailfishApp::pathTo("qml/bloo

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

2014-02-26 Thread antonio . cano . gomez
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: antonio.cano.go...@ovi.com; devel@lists.sailfishos.or

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

2014-02-26 Thread antonio . cano . gomez
same question than J-P: 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 &g

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 : > ??? > > 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: >> Hi, >> >> you

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

2014-02-25 Thread Sylvain B .
kel...@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 > methods from qml. > > On Tue, Feb 25, 2014 at 3:0

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 wa

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 antonio.c

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 connec

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 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, 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 li

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

2014-02-25 Thread antonio . cano . gomez
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 BLOOMFILTERS_H #include #include "svn/bloom-read-only/bloom_filter.hpp" class Bloomfilters :