i'm sorry - there are no slot macros in pyqt (at least i don't know them
) - the connect statements are totally correct for pyqt.
the problem was the way i did instantiate the parent class QObject. i'm kinda new to python and there are obviously several ways to inherit from classes. although i had access to inherited methods ... the SIGNAL handling did not work when inherited like this:
class ViewController
(QtCore.
QObject):
def __init__(self, parent=None):
class ViewController(QtCore.QObject):
def __init__(self, parent=None):
QtCore.QObject.__init__(self)
To copy to clipboard, switch view to plain text mode
a strange thing is, that it already works in another class when i instantiate this way but i cannot get it working here ...
-> changing to this is the solution of the problem:
class ViewController
(QtCore.
QObject):
def __init__(self, parent=None):
super(ViewController, self).__init__(parent)
class ViewController(QtCore.QObject):
def __init__(self, parent=None):
super(ViewController, self).__init__(parent)
To copy to clipboard, switch view to plain text mode
so the problem is solved ... at least the SIGNAL thing.
thanks anyway
Bookmarks