Hi, it's me again
i want to make listview,where it add new item when i add an object for that
i define my model like that
in ogrewidget.cpp
Qt Code:
  1. OgreWidget::add_object(/*Ogre::Real*/double offsetX ,/*Ogre::Real*/double offsetY)
  2. {
  3. .................................................
  4. model= new QStandardItemModel();
  5. int i=1;
  6. for(itr = result.begin() ;itr != result.end();++itr)
  7. {
  8. if(itr->movable)
  9. {
  10.  
  11. MarkerNode->_setDerivedPosition(mouseRay.getPoint(itr->distance));
  12. MarkerNode->setScale(0.1f, 0.1f, 0.1f);
  13. QStandardItem *item=new QStandardItem(QString ("Marker %0").arg(i));
  14. model->appendRow(item);
  15. i++;
  16.  
  17. }
  18. }
  19.  
  20. }
To copy to clipboard, switch view to plain text mode 
and in my_interface.cpp, i create my list view
Qt Code:
  1. list_O = new QToolButton(page_13);
  2. list_O->setGeometry(QRect(30, 210, 101, 31));
  3. list_O->setText(QApplication::translate("MainWindow", "Object Liste", 0, QApplication::UnicodeUTF8));
  4. listView =new QListView(list_O);
To copy to clipboard, switch view to plain text mode 
but it still do not make to me the list
what i forget to do
how i pass my list_view (in the class my_interface) to the add object in class ogrewidget?