Hi,
i create list view , i set model to the list like that
Qt Code:
  1. listView->setModel( model );
To copy to clipboard, switch view to plain text mode 
i createthe model like that
Qt Code:
  1. void MainWindow::createModel()
  2. {
  3. model = new QStandardItemModel( 0,0,this );
  4. model->setHorizontalHeaderLabels( QStringList() << "liste" );
  5. createModelItems();
  6. }
  7.  
  8. void MainWindow::createModelItems()
  9. {
  10. QStringList choiceList;
  11. QStandardItem *pItem;
  12.  
  13. choiceList << "conf1" << "conf2" << "conf3";
  14. foreach( QString str, choiceList ){ // parent
  15. pItem = new QStandardItem( str );
  16. pItem->setTristate( true );
  17. model->appendRow( pItem );
  18. }
  19.  
  20. }
To copy to clipboard, switch view to plain text mode 

and i added new item like that with signal slot
the sig,al is
Qt Code:
  1. void MainWindow::add(vector3 point)
  2. {
  3. QStandardItem *item=new QStandardItem(QString ("Marker %0").arg(nb_mark));
  4. nb_mark++;
  5. emit itemAded(item);
  6. }
To copy to clipboard, switch view to plain text mode 
the slot is
Qt Code:
  1. void MainWindow::itemAded( QStandardItem *pItem )
  2. {
  3.  
  4. model->appendRow( pItem );
  5. }
To copy to clipboard, switch view to plain text mode 
but the problem is that it add to me new item and that's not what i want
i want to add the new item as child of an item of the "chois list"

i know that i must add this infiormation in the signal , but how i do that ? have you an idea ?