Using a QCompleter in a QTableView with Qt and Python
问题 I'm reading up on how to make my QAbstractTableModel editable, and it looks pretty straightforward. But how do I set up an editable cell to use a QCompleter? I take it somehow I have to tell the QTableView to use a QLineEdit widget? How can I do this? edit: hmm, I guess it has something with QTableView.setItemDelegateForColumn() but I don't know anything about delegates or how to use them. edit: I tried RobbieE's solution, got something that sort of works but it gets the geometry of the popup