PDA

View Full Version : Set selected text in combo box



kode
27th December 2010, 12:06
Hi all,

i have QComboBox with QTreeView set as view. The view model has 4 columns in it. I want to get the 2nd column text and set it as selected text in combo box. The default behaviour is to set the cell text from the tree view.

I have any idea that i have to make signal / slot from/to the combo, but i can't find property to set the selected text for the combo and use cell_text[row, 2], where 2 is the default column to get the text and row will be the selected row index.

Any help or idea for the combo property?