|
Hi, some time ago I posted a problem on what flags need to be set when enabling editing in QTableWidgets. I found a setting that works... QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled Cheers, Heinz Example attached --
|
processmodeldialogimpl.py
Description: application/python
main.py
Description: application/python
processmodeldialog.py
Description: application/python
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>341</width>
<height>394</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<widget class="QTreeWidget" name="listViewTree" >
<property name="geometry" >
<rect>
<x>30</x>
<y>20</y>
<width>291</width>
<height>281</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
<property name="verticalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="editTriggers" >
<set>QAbstractItemView::SelectedClicked</set>
</property>
<property name="selectionBehavior" >
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="allColumnsShowFocus" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>node</string>
</property>
</column>
<column>
<property name="text" >
<string>name</string>
</property>
</column>
<column>
<property name="text" >
<string>type</string>
</property>
</column>
</widget>
</widget>
<resources/>
<connections/>
</ui>
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
