Hello Luciano,

just checked it and you are right ... but PyQt does
provide those methods :

- in case of QTranslator : I think this is to make
  the distinction in loading from a file, and loading
  from a string.  How is this distinction made in
  PySide ?

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qtranslator.html#loadFromData

- in case of setMargin : I have no idea on why this method
  is here, I suppose it is equivalent to setContentsMargins

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qlayout.html#setMargin

Regards,

Erik
  
On Fri, 2011-11-18 at 14:54 -0300, Luciano Wolf wrote:
> Hi Erik,
> 
> I was looking for these methods at QAssistant and Qt Documentation
> (web). They aren't available in Qt 4.7.4. Are you trying some code
> that have worked with earlier PySide versions?
> 
> 
> Cheers,
> Luciano
> 
> 
> On Sat, Nov 12, 2011 at 7:48 AM, Erik Janssens
> <[email protected]> wrote:
> > Hi,
> >
> > After compiling the latest release with Qt 4.7.4, and
> > running tests, I noticed some missing methods :
> >
> > - 'PySide.QtCore.QTranslator' object has no attribute 'loadFromData'
> >
> > - QLayout.setMargin
> >
> > - QAction.setShortcut only works when its argument is a QKeySequence,
> >  while one of the constructors of QKeySequence is an int.  So one
> >  would expect QAction.setShortcut to work with ints as well.
> >  ( as is the case in PyQt )
> >
> > For my understanding, how does it come methods are missing ?
> >
> > Are the methods generated through introspection from the compiler or
> > is there some other definition of the methods ?
> >
> > Thanks,
> >
> > Erik
> >
> > _______________________________________________
> > PySide mailing list
> > [email protected]
> > http://lists.pyside.org/listinfo/pyside
> >




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

Reply via email to