Project

General

Profile

Question about CsvUtil in the examples

Added by Mark Travis about 2 years ago

I'm curious why cvsToModel is called with a shared pointer to WStandardItemModel as the return, but all of the work is done in readFromCsv in to a WAbstractItemModel.

WStandardItemModel inherits everything from WAbstractItemModel, so why not use WStandardItemModel in readFromCsv?

Thanks! Just curious.