[PyQt] Help with a Combobox

Giuseppe Ventura caesar_539 at hotmail.it
Wed May 24 15:24:08 BST 2017


Hi all,
i've build a combobox with items from a Query from a database and it works well. I've adding a Qcompleter to this ComboBox and work.
The query is filtred with max 200 rows like: select * from table T1 where rownum<201 because i dont want load all 3000 items (many times).
Now I want that when i write text in combobox for example "IM"  i want that Completer show only items like "%IM%" for example select * from table T1 where column like '%IM%'.
i must reinsert all items in combobox?
This is my code, you can help me? https://pastebin.com/kt3jW6Vf

Thanks
Bye

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170524/bd16a682/attachment.html>


More information about the PyQt mailing list