so i want to know where you got that pointer "listview" 'just to check that it comes from the mainwindow class and is the same
i did not got any pointer (i just write the same code in my repling, i read that in qt assistant exemple ) shall i define pointer ? how i do that
so when you do new QStandardItemModel(); you should do new QStandardItemModel(this); for exemple
ahhhh, ok i will do that