On Thursday 12 May 2011 14:22:54 Aaron Richiger wrote: > Dear list... > > I designed my window with qt-designer and converted it with pyuic4. It > contains a QGridLayout and the pyuic4 creates a ".setMargin(0)" call, > which is according to the pyside doc not supported anymore, but only > ".setContentsMargin(1,2,3,4)". Anybody knows, why this function is not > supported anymore or how to avoid that pyuic4 creates this output? It > works in PyQt4.
It's deprecated. Use pyside-uic instead of pyuic4. > Thanks for your help! > > Code: > > from PySide import QtGui > g = QtGui.QGridLayout(None) > g.setMargin(0) # this produces an exception > > PyQt4 version: > > from PySide import QtGui > g = QtGui.QGridLayout(None) > g.setMargin(0) # this works great > > Have a nice evening! > _______________________________________________ > PySide mailing list > [email protected] > http://lists.pyside.org/listinfo/pyside -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
