Bug 183205

Summary: pykdeuic4 generates wrong imports for KDE classes
Product: [Developer tools] bindings Reporter: Adeodato Simó <dato>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: simon
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Adeodato Simó 2009-02-04 19:03:00 UTC
From http://bugs.debian.org/475403:

Using pykdeuic4 to convert UI files generated by Qt Designer to Python
classes results in wrong mappings for many KDE4 widgets.

While standard classes are imported correctly...
> from PyKDE4 import kdecore
> from PyKDE4 import kdeui
> from PyQt4 import QtCore, QtGui
....special widgets are imported at the end of the document giving a non-
existent package:
> from kcombobox import KComboBox

Correct would be:
> from PyKDE4.kdeui import KComboBox

As the Python class needs to be converted after every change made in Qt
Designer this bug is a bit annoying as changes made to the class are lost on
each update.

---

I can reproduce this problem, and is very annoying.
Comment 1 Simon Edwards 2009-02-04 20:51:48 UTC
Yes, I noticed this. The fix has been done and will be in 4.2.1.