Hi,
I downloaded PySide 4.1 and replaced my PyQt4 imports with PySide. I
stumbled upon two problems.
1. I use the following code in PyQt4 for QTreeWidgetItemIterator:
iter = QtGui.QTreeWidgetItemIterator(widget)
while(iter.value()):
item = iter.value()
...
iter += 1
PySide gives me the following exception:
AttributeError: 'PySide.QtGui.QTreeWidgetItemIterator' object has no
attribute 'value'
Am I doing it the wrong way or isn't this supported yet?
2. I have a custom widget defined like this:
from PySide import QtGui, QtCore
class ViewportWidget(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setAttribute(QtCore.Qt.WA_NativeWindow, True)
self.setAttribute(QtCore.Qt.WA_PaintOnScreen, True)
def paintEngine(self):
return None
I use QWidet::winId() to get the window handle and initialize directx on
that window. This works great in PyQt4, but PySide tells me that:
AttributeError: 'ViewportWidget' object has no attribute 'winId'
The docs seem to state that winId() should indeed work:
http://www.pyside.org/docs/pyside/PySide/QtGui/QWidget.html#PySide.QtGui.QWidget.winId
/Stefan
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside