<div> Hello,</div>
<div> </div>
<div>I am using PyQt on Windows XP and Ubuntu. </div>
<div>My environment is python 2.5 and Qt4.3.3 OpenSource Edition and PyQt GPL 4.3.3.</div>
<div> </div>
<div>I found an unexpected behaviour in Window XP.</div>
<div>This code is Okay in Ubuntu. </div>
<div> </div>
<div>
<div>code:</div>
<div>class PluginSettingDialog(QtGui.QDialog):<br> def __init__(self, parent=None):<br> QtGui.QDialog.__init__(self, parent)<br> self.ui = Ui_PluginSettingDialog()<br> self.ui.setupUi(self)</div>
<div> ...</div>
<div> self.ui.treeWidget.setEditTriggers(<br> QtGui.QAbstractItemView.NoEditTriggers)<br> self.ui.treeWidget.setRootIsDecorated(False)<br> self.ui.treeWidget.setAlternatingRowColors(True)<br>
self.ui.treeWidget.setModel(self.createModel()) </div></div>
<div> </div>
<div> </div>
<div>$ /cygdrive/c/Python25/python pluginsetting.py<br>...<br>Traceback (most recent call last):<br> File "pluginsetting.py", line 86, in <module><br> dialog = PluginSettingDialog()<br> File "pluginsetting.py", line 24, in __init__<br>
self.ui.treeWidget.setModel(self.createModel())<br>AttributeError: QTreeWidget.setModel is a private method</div>
<div> </div>
<div> </div>
<div>Regards</div>