Re: [Interest] QDatastream, QMap, QImage serialization

2018-05-16 Thread Jason H
> Sent: Wednesday, May 16, 2018 at 11:52 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] QDatastream, QMap, QImage serialization > > On Wednesday, 16 May 2018 14:38:08 PDT Jérôme Godbout wrote: > > You will need to provide your own > > > > QDataStream& operato

Re: [Interest] QDatastream, QMap, QImage serialization

2018-05-16 Thread Thiago Macieira
On Wednesday, 16 May 2018 14:38:08 PDT Jérôme Godbout wrote: > You will need to provide your own > > QDataStream& operator<<(QDataStream& ds, const QImage& img) That's not needed (and won't compile). It already exists. The problem is that QVariant doesn't know how to call it. So when you have a

Re: [Interest] QDatastream, QMap, QImage serialization

2018-05-16 Thread Jérôme Godbout
You will need to provide your own QDataStream& operator<<(QDataStream& ds, const QImage& img) { ds << img.height() << img.width() << img.format() << img.data() } and QDataStream& operator>>(QDataStream& ds, QImage& img) { int height; ds >> height; img.setHeight(height); ... }

Re: [Interest] QDatastream, QMap, QImage serialization

2018-05-16 Thread Thiago Macieira
On Wednesday, 16 May 2018 13:51:39 PDT Jason H wrote: > I'm trying to write a GUI utility to provide a simple UI. I'm wanting a > no-frills database of several Qt types, and I'm trying to use QVariantMap > for that. It's going well except that QImages aren't being serialized > correctly. Yes, I kno

[Interest] QDatastream, QMap, QImage serialization

2018-05-16 Thread Jason H
I'm trying to write a GUI utility to provide a simple UI. I'm wanting a no-frills database of several Qt types, and I'm trying to use QVariantMap for that. It's going well except that QImages aren't being serialized correctly. Yes, I know there is a QVariant limitation with "GUI types" ( http:/

Re: [Interest] Code contributions via bug reports and forum posts

2018-05-16 Thread coroberti .
Hi, This is a very positive and long anticipated development. Excellent! Kind regards, Robert On Wed, May 16, 2018 at 12:20 PM, Tuukka Turunen wrote: > > > Hi, > > > > Contribution of source code is now allowed via Qt systems such as bug > reports and forums. Traditionally all source code cont

Re: [Interest] QFile::write(const QByteArray&) does not, , write, all data?

2018-05-16 Thread Roland Hughes
On 05/16/2018 06:04 AM, Thiago Macieira wrote: Ok, so not the standard C library. But it is still the case for POSIX and Win32. In fact, the man page for write(2) says specifically [...] It is not an error if this number is smaller than the number of bytes requested; this may

Re: [Interest] Licensing questions when using shared Qt-library on iOS

2018-05-16 Thread alexander golks
Am Wed, 16 May 2018 10:49:06 + schrieb "Trillmann, Jens" : > every other file in the platformplugin is LGPL licensed. From my > understanding I would violate the LGPL license if I would try to > distribute the app in this form, because a user could not easily swap > the provided Qt-library

Re: [Interest] Licensing questions when using shared Qt-library on iOS

2018-05-16 Thread Jean-Michaël Celerier
> From my understanding I would violate the LGPL license if I would try to distribute the app in this form, because a user could not easily swap the provided Qt-library with his own. The app itself is under the non-compatible EUPL. You can ship your app's .o files to allow other people to relink

[Interest] Licensing questions when using shared Qt-library on iOS

2018-05-16 Thread Trillmann, Jens
Hi, I'm currently trying to link our app on iOS dynamically against Qt. From the technical standpoint everything seems to be working, but I have a problem with the licensing. I would like to conform to the LGPL license, meaning that I want to link against all Qt parts dynamically, but I have t

[Interest] Code contributions via bug reports and forum posts

2018-05-16 Thread Tuukka Turunen
Hi, Contribution of source code is now allowed via Qt systems such as bug reports and forums. Traditionally all source code contributions to the Qt Project are governed via Contribution License Agreement (CLA), except possibility given to the commercial license holders to provide bug fixes and