<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    I've a strange result with pyqtsignal, the argument transmit with
    the signal,<br>
    an instance of QImage, is not the same in the slot.<br>
    <br>
    Exemple with this code:<br>
    -------------------------------------------------<br>
    <br>
    # -*- coding: utf-8 -*-<br>
    <br>
    import sys<br>
    import os<br>
    <br>
    from PyQt4 import QtCore, QtGui<br>
    <br>
    class Viewing(QtCore.QObject):<br>
        loadingImage = QtCore.pyqtSignal()<br>
        imageLoaded = QtCore.pyqtSignal(QtGui.QImage)<br>
        def __init__(self):<br>
            QtCore.QObject.__init__(self)<br>
    <br>
        def load_image(self, img):<br>
            self.current_view = QtGui.QImage(img)<br>
            print "Send : %s" % self.current_view<br>
            self.imageLoaded.emit(self.current_view)<br>
    <br>
    def on_load_image(img):<br>
        print "Receive : %s" % img<br>
    <br>
    if __name__ == "__main__":<br>
        viewing = Viewing()<br>
        viewing.imageLoaded.connect(on_load_image)<br>
        viewing.load_image("/home/vincent/DSC00690.JPG")<br>
    ----------------------------------------------------<br>
    <br>
    Result:<br>
        Send : <PyQt4.QtGui.QImage object at 0x95b917c><br>
        Receive : <PyQt4.QtGui.QImage object at 0x95b91ac><br>
    <br>
    <br>
    Linux-2.6.32-31-generic-i686-with-Ubuntu-10.04-lucid<br>
    Qt            4.6.2<br>
    Python        2.6.5<br>
    PyQt        4.7.2<br>
    Sip            4.10.1<br>
    <br>
    Regards<br>
    <br>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Vincent V.V.<br>
      <a href="https://launchpad.net/oqapy">Oqapy</a> . <a
        href="https://launchpad.net/qarte+7">Qarte+7</a> . <a
        href="https://launchpad.net/paqager">PaQager</a></div>
  </body>
</html>