The QStyledItemDelegate class, part of the Qt framework, provides display and editing facilities for data items from a model.
When displaying data from models in Qt item views, e.g., a QTableView
, the individual items are drawn by a delegate. Also, when an item is edited, it provides an editor widget, which is placed on top of the item view while editing takes place. QStyledItemDelegate
is the default delegate for all Qt item views, and is installed upon them when they are created.
The QStyledItemDelegate
class is one of the Model/View Classes and is part of Qt's model/view framework. The delegate allows the display and editing of items to be developed independently from the model and view.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.