Re: [Interest] QDesktopServices::openUrl() without inheriting environment?

2020-10-23 Thread Nikos Chantziaras
On 23/10/2020 18:50, Olivier B. wrote: An application needs custom library search path to use it's own versions of external libraries. You should look into doing that at link-time, not runtime. With a qmake project, you should be able to add: QMAKE_RPATHDIR += lib in the project file. Mak

Re: [Interest] QDesktopServices::openUrl() without inheriting environment?

2020-10-23 Thread Thiago Macieira
On Friday, 23 October 2020 08:50:07 PDT Olivier B. wrote: > Is there a way to still use the mechanism to find the application to use > from system settings, but launch the command with the default system > environment, not the one inherited from the application's process > (something like calling t

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:

[Interest] QDesktopServices::openUrl() without inheriting environment?

2020-10-23 Thread Olivier B.
An application needs custom library search path to use it's own versions of external libraries. But because of this, when opening files in external applications using QDesktopServices::openUrl(), the system applications (browser) registered for the file type will first try to use the application's

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()) /