I didn't find from docs. It is too complex just for me now. I asked here in the newbie forum and someone helped me.
I am just trying to make a real application from QtDemos with model->copyPaste for now.
I developed this solution. It took my two hours.
QVariant city_id = cityModel->data(cityModel->index(comboBox_City->currentIndex(),0) );
Bookmarks