Hi,

I've ported a simple PyQt4 (4.8.4) application to PySide 1.0.0 according 
to http://www.qtrac.eu/pyqtbook.html#pyside. This works pretty well, 
except that I cannot use the PyQt4 UI code generator generated UI file:

Traceback (most recent call last):
  File "./my_application-pyside.pyw", line 73, in <module>
    mainWin = MainWindow()
  File "./my_application-pyside.pyw", line 22, in __init__
    self.setupUi(self)
  File "/mnt/smb/tkampe/mnt/f/[...]/template/resource/ui.py", line 19, 
in setupUi
    MainWindow.setObjectName(_fromUtf8("MainWindow"))
TypeError: 'PySide.QtCore.QObject.setObjectName' called with wrong 
argument types:
  PySide.QtCore.QObject.setObjectName(QString)
Supported signatures:
  PySide.QtCore.QObject.setObjectName(QString)

When I change "from PyQt4 import QtCore, QtGui" in the UI file to "from 
PySide import QtCore, QtGui", the error disappears.

What's wrong here?!

Thorsten

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to