Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Invalid
-
Affects Version/s: 4.8.0
-
Fix Version/s: None
-
Component/s: Documentation
-
Labels:None
Description
The code provided in documentation page http://qt-project.org/doc/qt-4.8/model-view-programming.html#view-classes has a bug. The code:
int main(int argc, char *argv[]){
QApplication app(argc, argv);
// Unindented for quoting purposes:
QStringList numbers;
numbers << "One" << "Two" << "Three" << "Four" << "Five";
QAbstractItemModel *model = new StringListModel(numbers);
Here the StringListModel should be QStringListModel.