Re: [Interest] Pointers as Q_PPOPERTY

2013-11-03 Thread Sandro Andrade
On Sat, Nov 2, 2013 at 5:31 PM, Sandro Andrade wrote: > On Mon, Oct 28, 2013 at 8:13 AM, Stephen Kelly wrote: >> On Monday, October 07, 2013 09:55:53 Sandro Andrade wrote: >>> On Wed, Oct 2, 2013 at 11:18 AM, Stephen Kelly >> wrote: >>> > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wr

Re: [Interest] Pointers as Q_PPOPERTY

2013-11-02 Thread Sandro Andrade
On Mon, Oct 28, 2013 at 8:13 AM, Stephen Kelly wrote: > On Monday, October 07, 2013 09:55:53 Sandro Andrade wrote: >> On Wed, Oct 2, 2013 at 11:18 AM, Stephen Kelly > wrote: >> > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: >> >> Q_PROPERTY(Hull * hull READ hull) >> >> Q_PROPERTY

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-28 Thread Stephen Kelly
On Monday, October 07, 2013 09:55:53 Sandro Andrade wrote: > On Wed, Oct 2, 2013 at 11:18 AM, Stephen Kelly wrote: > > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: > >> Q_PROPERTY(Hull * hull READ hull) > >> Q_PROPERTY(Reactor * reactor READ reactor) > >> Q_PROPERTY(Shields * shi

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-07 Thread Sandro Andrade
On Wed, Oct 2, 2013 at 11:18 AM, Stephen Kelly wrote: > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: >> Q_PROPERTY(Hull * hull READ hull) >> Q_PROPERTY(Reactor * reactor READ reactor) >> Q_PROPERTY(Shields * shields READ shields) >> >> This approach should work in your case. > > T

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-07 Thread Николай Шатохин
Can I use QList (or something similar) as Q_PROPERTY? How can I use it in QML? Can I use QList of pointers? And get objects in QML Best regards, Nick 2013/10/4 Николай Шатохин > Yes, I did exactly the same. Thanks. > > > 2013/10/4 Bo Thorsen > >> Hi Николай Шатохин, >> >> I saw on the list, t

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-04 Thread Николай Шатохин
Yes, I did exactly the same. Thanks. 2013/10/4 Bo Thorsen > Hi Николай Шатохин, > > I saw on the list, that you got this working. But there were a bunch of > things missing in the discussion. I have just done the same thing you are > trying in one of our 4.8.5 based projects. > > Some of this h

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-04 Thread Bo Thorsen
Hi Николай Шатохин, I saw on the list, that you got this working. But there were a bunch of things missing in the discussion. I have just done the same thing you are trying in one of our 4.8.5 based projects. Some of this has been said, other parts haven't. I hope this is a complete descriptio

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Николай Шатохин
I tried in Qt5.1 and it's working. Thanks. 2013/10/2 Дмитрий Козлов > 02.10.2013 19:18, Stephen Kelly пишет: > > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: > > Q_PROPERTY(Hull * hull READ hull) > Q_PROPERTY(Reactor * reactor READ reactor) > Q_PROPERTY(Shields * shields READ

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Дмитрий Козлов
02.10.2013 19:18, Stephen Kelly пишет: On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: Q_PROPERTY(Hull * hull READ hull) Q_PROPERTY(Reactor * reactor READ reactor) Q_PROPERTY(Shields * shields READ shields) This approach should work in your case. This will work with QML with Qt 5

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Stephen Kelly
On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: > Q_PROPERTY(Hull * hull READ hull) > Q_PROPERTY(Reactor * reactor READ reactor) > Q_PROPERTY(Shields * shields READ shields) > > This approach should work in your case. This will work with QML with Qt 5.2. https://codereview.qt-proj

Re: [Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Дмитрий Козлов
02.10.2013 18:12, Николай Шатохин пишет: Hello I registered as QML Type class Ship inherited from QObject that have fields: Q_PROPERTY(Hull hull READ hull) Q_PROPERTY(Reactor reactor READ reactor) Q_PROPERTY(Shields shields READ shields) (all field classes inherited from QObject too) But in

[Interest] Pointers as Q_PPOPERTY

2013-10-02 Thread Николай Шатохин
Hello I registered as QML Type class Ship inherited from QObject that have fields: Q_PROPERTY(Hull hull READ hull) Q_PROPERTY(Reactor reactor READ reactor) Q_PROPERTY(Shields shields READ shields) (all field classes inherited from QObject too) But in ship class I'm using this fields as pointers