QCompleter for QTableWidgetItem for Auto Collection

I have a QTableWidget that has a QTableWidgetItem that contains the code that will be supplied by the user. This code is known to the database and involves automatic disconnection of the user as you enter it. How to connect QCompleter to QTableWidgetItem. I know how to do this with QLineEdit, but I have not found an example with QTableWidgetItem.

+3
source share
2 answers

I managed to find a solution, although not quite using QTableWidgetItem, basically I put a QLineEdit in a cell and bound the QCompleter to this.

+2
source

Not sure how far this will take you, but look at it.

http://docs.huihoo.com/qt/4.4/demos-spreadsheet-main-cpp.html

Find completerin the code.

+1

Source: https://habr.com/ru/post/1795298/


All Articles