[Kde-bindings] Re: operator<< not found for QDataStream and QPixmap in Qtruby
Eugene Brazwick
eugene.brazwick at rattink.com
Sat Oct 9 13:14:25 UTC 2010
Apparently, the dynamic linking of QtGui prevents this from working correctly.
However, the following will work:
to read:
vpixmap = Qt::Variant.new
datastream = Qt::DataStream.new(some_io, Qt::IODevice::ReadOnly)
datastream >> vpixmap
pixmap = vpixmap.value
to write:
datastream = Qt::DataStream.new(some_io, Qt::IODevice::WriteOnly)
datastream << Qt::Variant::from_value(pixmap)
Regards,
Eugene
More information about the Kde-bindings
mailing list