- 
    Bug 
- 
    Resolution: Invalid
- 
     Not Evaluated Not Evaluated
- 
    None
- 
    4.8.0
- 
    None
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.