[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] how to get all the signal from a QObject/QWidget ? and other Q about signals
From: Emmanuel Mayssat <emayssat () gmail ! com>
Date: 2012-02-16 23:19:18
Message-ID: CACB6ZmBQQyse-S7xaDydqw6gJ4EAUKb49zftgFc3m-9PHZPYMw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I have a widget inside another widget.
1/
I would like to have a ~for loop that propagate all the signals of the
inner widget as if they were emitted by the container widget.
That is for each signals
self.connect(myChild, SIGNAL("mySignal()"), self.mySignal.emit())
how can I list the signals that an object has?
2/
I understand also that the signals needs to be declared at both levels.
Is there a way to do that progammatically?
3/
A propos, I noticed that inheritance doesn't seem to pass signal definition.
That is
class Lwidget(QWidget):
mysignal = pyqtSignal()
class LSuperWidget(Lwidget):
<here the signal needs to be redefined> <-- is there a way to
avoid this?
[Attachment #5 (text/html)]
I have a widget inside another widget.<br><br>1/<br>I would like to have a ~for loop \
that propagate all the signals of the inner widget as if they were emitted by the \
container widget.<br> That is for each signals <br>self.connect(myChild, \
SIGNAL("mySignal()"), self.mySignal.emit())<br><br>how can I list the \
signals that an object has?<br><br>2/<br>I understand also that the signals needs to \
be declared at both levels.<br>
Is there a way to do that progammatically?<br><br>3/<br>A propos, I noticed that \
inheritance doesn't seem to pass signal definition.<br>That is <br><br>class \
Lwidget(QWidget):<br> mysignal = pyqtSignal()<br><br>class \
LSuperWidget(Lwidget):<br>
<here the signal needs to be redefined> <-- is there a way to \
avoid this?<br><br><br><br><br>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://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