Hi,

I was wondering if the auto-connect of signals is supported in PySide.
I have tried to run my "hello world" that worked with PyQt4 but with
PySide it does not.

-- code --
from PyQt4 import QtGui

from ui_files.mainwindow import Ui_MainWindow

class MainWindow(QtGui.QMainWindow):
   def __init__(self):
       QtGui.QMainWindow.__init__(self)
       ui = Ui_MainWindow()
       ui.setupUi(self)

   def on_actionExit_triggered(self):
       self.close()
-- code --

Is there any additional way to enable the auto-connect mechanism? I
have seen that in the pyside-uic generated output code there is a
line:
QtCore.QMetaObject.connectSlotsByName(MainWindow)
but it seems it has no effect.

Best regards,
Dariusz Gadomski
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to