[Kde-bindings] Qyoto: new bindings
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sat Dec 31 19:24:44 UTC 2005
On Saturday 31 December 2005 18:22, Arno Rehn wrote:
> Hi,
>
> these bindings are looking a bit better.
> But should these already be 'compilable' ? Because I'm missing the class
> 'QByteArray'. In the old bindings the 'QByteArray' things were solved with
> a 'byte[]'. What is the reason that you included 'QByteArray' again ?
Because of the way QByteArray is used, it is hard to convert to a byte[] and
back again. For instance when you give a QByteArray to a QDataStream, write a
few things and the underlying QByteArray gets written to - it would be hard
to retrieve a byte[] with the updated value in that situation. I originally
had it being marshalled to a ruby string in QtRuby, but changed it to have
ruby Qt::ByteArray class to fix problems like the one I describe above.
-- Richard
More information about the Kde-bindings
mailing list