Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Amogh last edited by
How do i make a particular column of a Qtableview model editable ?
joeQ last edited by joeQ
you can use the
same value typecell item. and delegate for column.
particular value type
editable just for column
- when you new cell item, set the item is editable.
- set delegate just for this column, and you should to finished new editor widget in delegate.model-view-delegate
By default it is editable only. It shows you the lineEdit by default. Any other specific stuff r u trying to do ?
VRonin last edited by
It's not just up to the View.
- You can make sure the view has some edit triggers set: http://doc.qt.io/qt-5/qabstractitemview.html#editTriggers-prop
- The delegate has to handle the editing (this only applies if you set a custom delegate)
- The model
flags()method must return a value with
Qt::ItemIsEditableset and its
setValuemethod must actually do something rather than just returning
For example, if you are trying to edit a
QTableViewyou won't be successful as the 3rd point is failing