[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] self.sender() never return instance of QProcess in the destroyed slot of QProcess
From: "Zhao Lee" <redstone-cold () 163 ! com>
Date: 2017-04-10 7:36:24
Message-ID: 64159b18.1b9.15b56cad2e5.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
self.sender() never return instance of QProcess in the destroyed slot of QProcess, \
anyone can explain why ?
my code almost looks like the following
process = QProcess(self)
process.destroyed.connect(self.onProcessDestroyed)
def onProcessDestroyed(self):
process = self.sender()
print('onProcessDestroyed---------', process)
[Attachment #5 (text/html)]
<div><div>self.sender() never return instance of QProcess in the destroyed slot \
of QProcess, anyone can explain why ?</div><div><br></div><div>my code almost looks \
like the following </div><div style="color: rgb(0, 0, 0); font-family: arial; \
font-size: 14px;"><br></div><div>process = \
QProcess(self) </div><div>process.destroyed.connect(self.onProcessDestroyed)</div><div \
style="color: rgb(0, 0, 0); font-family: arial; font-size: \
14px;"><br></div></div><div style="color: rgb(0, 0, 0); font-family: arial; \
font-size: 14px;">def onProcessDestroyed(self):</div><div> process = \
self.sender()</div><div> print('onProcessDestroyed---------', \
process)</div><!-- jy5ContentSuffix --><br><br><span \
title="neteasefooter"><p> </p></span>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic