[PyKDE] QMenuData.findItem() breaking PyQT 3.5 code on PyQT < 3.5 systems
Phil Thompson
phil at river-bank.demon.co.uk
Mon Dec 30 14:02:01 GMT 2002
On Saturday 28 December 2002 8:33 pm, Ricardo Niederberger Cabral wrote:
> Why pyuic from PyQT 3.5 uses QMenuData.findItem() for setting menu bar
> labels on the languageChange() method of generated MainWindows ? From what
> I found on PyQT's Changelog, findItem method was introduced in 3.5,
> therefore producing classes that would break on the languageChange() method
> on 3.4 systems (which Debian and Mandrake 9 seems to use) Couldn't
> QMenuData.changeItem() or something else be used instead of findItem() ?
According to the Changelog QMenuData.findItem() was added 15 months ago, so
this particular one shouldn't be a problem.
However it is possible (because pyuic tracks the latest uic) that something
gets introduced that is only available in recent versions of Qt. I will treat
those as bugs.
Note that uic only generates code for the version of Qt it was shipped with.
pyuic, on the other hand, tries to generate code for any version of Qt (with
the same major number). There may be cases where pyuic can't do this without
sacrificing portability or functionality.
Phil
More information about the PyQt
mailing list