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
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
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->
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
...@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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
???
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
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
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
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
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 :
24 matches
Mail list logo