hi,

How can i display selected columns from a Model into my QTableView widget.
Say my model has 5 cloumns and i want o display two in a QTableView widget and
populate any other combo box widget with data from the third colunm of the Model.

Qt Code:
  1. int MyModel::columnCount(const QModelIndex& p) const
  2. {
  3. if ( p.isValid() || !sourceModel() )
  4. return 0;
  5.  
  6. return 3;
  7. }
To copy to clipboard, switch view to plain text mode 

Then three columns are shown in my QTableView widget but i want only two and data for the third to be put in a comboBox.

help!!!!

Regards,
GK