Vector
Vector

Reputation: 11713

QT widget signals - comprehensive list?

Looking for a comprehensive listing of the various SIGNALS emitted by the built in QT4 widgets. Have looked around - can't seem to find one. (Using PyQT 4.x and Python 3.2)

TIA

Upvotes: 4

Views: 2437

Answers (2)

Luke
Luke

Reputation: 11644

The following code lists all signals for all QObject subclasses in QtGui:

from PyQt4 import QtGui, QtCore
import inspect
for name in dir(QtGui):
    obj = getattr(QtGui, name)
    if inspect.isclass(obj) and issubclass(obj, QtCore.QObject):
        for name2 in dir(obj):
            obj2 = getattr(obj, name2)
            if isinstance(obj2, QtCore.pyqtSignal):
                print name, name2

Upvotes: 7

bjoernz
bjoernz

Reputation: 3852

I would think that the Qt documentation has all available signals.

Upvotes: 4

Related Questions