Hi,
It looks like there is nothing available in PyQt to read from a
QSharedMemory or to write into it.
How to use the sip.voidptr returned by QSharedMemory.data()?
Here is a piece of code that shows the writing problem:
/# Encode data into a buffer/
buffer = QtCore.QBuffer()
buffer.open(QtCore.QIODevice.WriteOnly)
out = QtCore.QDataStream(buffer)
out.writeInt32(1234)
size = buffer.size()
/# Create the shared memory/
sharedMemory = QtCore.QSharedMemory('key')
sharedMemory.create(size)
/# Write the encoded data into the shared memory/
sharedMemory.lock()
*memcpy(sharedMemory.data(), buffer.data().data(), size)* # How to do
somehting like that?
sharedMemory.unlock()
Regards,
Alexandre.
begin:vcard
fn:Alexandre Raczynski
n:Raczynski;Alexandre
org:Technogerma Systems France
adr:;;4 rue Marconi;Metz;;57070;France
email;internet:[email protected]
title:Software Department Manager
tel;work:03 87 20 09 07
url:http://www.technogerma.fr
version:2.1
end:vcard
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt