On Thu, Feb 4, 2010 at 6:24 AM, Michele Petrazzo - Unipex
<[email protected]> wrote:
> Hi all,
> like now I'm playing for see if the some simple pyqt programs works with
> pyside-shiboken and I'm seeing a lot of problems and errors with
> TypeError: '$method$' called with wrong parameters.
> My code where the problem appear:
>
> app.installTranslator(translate)
> TypeError: 'installTranslator()' called with wrong parameters.
>
> app are: <QApplication object at 0x9559d40>
> and translate: <QTranslator object at 0x9559dc0>
>
> The same for the some ui created by pyuic:
> self.label_1.setAlignment(QtCore.Qt.AlignCenter)
> TypeError: 'setAlignment()' called with wrong parameters.
>
> and:
> self.lst_data.setMinimumSize(QtCore.QSize(400, 0))
> TypeError: 'setMinimumSize()' called with wrong parameters.

Is the gui created during runtime using pyuic or generated to a
separate module? In this last case make sure there is "PySide" instead
of PyQt4 in the import statements.

>
> Of course, QtCore are the pyside implementation :) and this programs
> works well with pyqt
>

You mean QtCore *and* QtGui, right?



-- 
Lauro Moura
INdT - Instituto Nokia de Tecnologia
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to