[PyKDE] unicode/qstring conversion in, PyQt-3.3rc3

Boudewijn Rempt boud at valdyas.org
Fri Jul 5 23:10:01 BST 2002


Is it possible that the automatic unicode -> QString converstion broke
in this rc? For instancem, I get

Traceback (most recent call last):
  File "/home/boud/prj/kura-2.0/kuragui/guiaction.py", line 21, in 
slotActivatedName
    self.emit( PYSIGNAL("activatedName"),(self.name,) )
  File "./kuraclient/kurawindow.py", line 193, in openView
    parent = self)
  File "/home/boud/prj/kura-2.0/kuragui/guilistview.py", line 80, in __init__
    self.refresh(self.searchRec)
  File "/home/boud/prj/kura-2.0/kuragui/guilistview.py", line 121, in refresh
    self.addItem(row)
  File "/home/boud/prj/kura-2.0/kuragui/guilistview.py", line 106, in addItem
    lvi.setText(col, value)
TypeError: Argument 2 of QListViewItem.setText() has an invalid type

When I try to use a unicode object. Same with dialogs:

Traceback (most recent call last):
  File "./kuraclient/kurailcanvasview.py", line 45, in 
contentsMouseDoubleClickEvent
    self.emit(PYSIGNAL("sigDoubleClickOn"), (self.currentItem, 
self.currentRec))
  File "./kuraclient/kuratextlistview.py", line 171, in slotItemOpened
    self.__openTag(item, record, "Edit sentence tag " + record.tag)
  File "./kuraclient/kuratextlistview.py", line 147, in __openTag
    , record=record
  File "./kuraclient/dlgtag.py", line 128, in __init__
    QTabDialog.__init__(self, parent, title, TRUE, Qt.WStyle_DialogBorder)
  File "/usr/local/lib/python2.2/site-packages/qt.py", line 252, in __init__
    libqtc.sipCallCtor(36,self,args)
TypeError: Argument 2 of QTabDialog() has an invalid type

When I try to set the name of the dialog with a unicode object, instead
of a plain string.

-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the PyQt mailing list