Public bug reported:

Binary package hint: python-qt4

pyuic4 (  Python User Interface Compiler 4.3.3 for Qt version 4.3.4 )
generates corrupted python code when using icons in designer.

For example:
self.actionNew.setIcon(QtGui.QIcon("
             "))

instead of:
self.actionNew.setIcon(QtGui.QIcon(":/icons/icons/32/filenew.png"))

uic4 generates following c++ code:
icon.addPixmap(QPixmap(QString::fromUtf8(":/icons/icons/32/filenew.png")), 
QIcon::Normal, QIcon::Off);

It is fixed in 4.4.1 riverbank's upstream release.

** Affects: python-qt4 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
pyuic4 creates broken .py files when using icons in qt4 designer
https://bugs.launchpad.net/bugs/237328
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to