Title: business
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
--


Heinz A Preisig
Professor of Process Systems Engineering
Private:
Øvre Bakklandet 62 B, 7013 Trondheim, Norway
Department of Chemical Engineering
Norwegian University of Science and Technology      
N – 7491 Trondheim, Norway
Tel direct:         +47     735 92807
Tel mob:           +47     9754 1334
e-mail:              [EMAIL PROTECTED]
web:                 www.chemeng.ntnu.no\~preisig
 

Attachment: processmodeldialogimpl.py
Description: application/python

Attachment: main.py
Description: application/python

Attachment: 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    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to