PDA

View Full Version : Create QTableWidget which has default QComboBoxes throughout in 4 column's cells



Channareddy
10th June 2011, 10:58
hello,
i want to know that can we create QTableWidget which has QComboBoxes in all the cells of 4 columns throughout the size of the QTable.I need this bcoz i am facing problems while i am dynamically creating a QComboBoxes in QTablewidget into which a file data is written.
I have a Qtable of size 13x13 which has QcomboBoxes at column 8,9,10,11,12.Each time i read file data n add data to these comboBoxes which are created dynamically after reading the data from file and set to the table.
Now when i write file data into row 0 it works fine(all comboBoxes are displayed n they show correct values).But when i write data into row 1(after writing into row 0) then the comboBoxes in row 0 are displayed at row 1.
I don't know how to overcome this please help me..:(Let me know If there is any way so that we can create QTableWidget with default QComboBoxes.
Thanks in advance...