Re: [Interest] QSharedpointer members are not accessible: isNull and data

2020-10-23 Thread Thiago Macieira
On Friday, 23 October 2020 05:16:08 PDT Tamás Nagy wrote: > QSharedPointer m_Validator; > } > > My custom program: > > if(di.Validator()->isNull()) Are you sure -> is the right operator here? You didn't give us the implementation of this Validator function, so we have to guess. If it is:

Re: [Interest] QSharedpointer members are not accessible: isNull and data

2020-10-23 Thread Giuseppe D'Angelo via Interest
Hi, On 23/10/2020 14:16, Tamás Nagy wrote: class A { public: private: QSharedPointer m_Validator; } My custom program: if(di.Validator()->isNull()) { // unfortunately the di.Validator() is null // some A-s in the Map can have nullptr as Validator.

[Interest] QSharedpointer members are not accessible: isNull and data

2020-10-23 Thread Tamás Nagy
Hi, class A { public: private: QSharedPointer m_Validator; } My custom program: if(di.Validator()->isNull()) { // unfortunately the di.Validator() is null // some A-s in the Map can have nullptr as Validator. if(auto validator = di.Validator()) /