Re: [Development] QSharedPointer specialization

2018-06-15 Thread Philippe
> > IOW, is a QSharedPointer specialization feasible? > > To do what? I meant, to have QSharedPointer<"derived QObject class"> using the QObject control block, rather than creating a new one. (in the same way this is done with QWeakPointer) My whole reflexion was: I need to have shared ownership

Re: [Development] RFC: unified data model API in QtCore => thin wrapper proposal

2018-06-15 Thread Tor Arne Vestbø
> On 15 Jun 2018, at 13:31, Arnaud Clère wrote: > [snip] > Most user-defined bind methods would be very simple and the type system would > guarantee that data is well-formed (no sequence or record left open...): > >struct Person { >QString m_firstName, m_lastName; >int m_

Re: [Development] RFC: unified data model API in QtCore

2018-06-15 Thread Thiago Macieira
On Thursday, 14 June 2018 23:55:33 PDT Olivier Goffart wrote: > QDomDocument is, in fact, not deprecated. Fair enough. But the QtXml module as a whole is Done. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center __

Re: [Development] QSharedPointer specialization

2018-06-15 Thread Thiago Macieira
On Friday, 15 June 2018 00:32:13 PDT Philippe wrote: > QObject has built-in support to a reference count block to support QPointer > (which is composed of a QWeakPointer) > > When doing QSharedPointer, is there a technical reason that > prevents the QObject control block to be used, rather allocat

[Development] RFC: unified data model API in QtCore => thin wrapper proposal

2018-06-15 Thread Arnaud Clère
-Original Message- From: Thiago Macieira Sent: jeudi 14 juin 2018 02:08 > This email is to start that discussion and answer these questions: > a) should we have this API? > b) if so, what would this API look like? > c) if not, should we unify at least JSON and CBOR? > c) either w

[Development] QSharedPointer specialization

2018-06-15 Thread Philippe
QObject has built-in support to a reference count block to support QPointer (which is composed of a QWeakPointer) When doing QSharedPointer, is there a technical reason that prevents the QObject control block to be used, rather allocating a new one, like it is necessary for common objects? IOW,

Re: [Development] unique_ptr and Qt

2018-06-15 Thread Olivier Goffart
On 2018-06-05 14:40, Daniel Teske wrote: Hi, I've done some research into how supporting unique_ptr in Qt might look like. I have a patch which adds apis using unique_ptr for ownership transfer to almost all of QtBase and a patch for Qt Creator to show how using those apis looks like. Qt: h