[PyQt] Best way to add combobox into table?

Ke Gao ke.gao.ut at gmail.com
Sun May 27 17:04:58 BST 2018


Hi,

I want to add a combobox into a a table, what is the best way, using
tableview or tablewidget? I tried tablewidget and succeeded using
setCellWidget. However, I can't obtain the current text in the combobox.
For example, cellWidget(row, col).currentText(). Is there any way to read
and change the data in the combobox in tablewidget?

Thank you very much,

Ke

-- 
..............................................................................................................................................
Ke Gao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180527/4a8f8756/attachment.html>


More information about the PyQt mailing list