How to implement autocomplete feature with PyQt5 in Python

preview_player
Показать описание
In this tutorial, we are going to learn how to use the QCompleter class to implement autocomplete feature using PyQt5 in Python.

Buy Me a Coffee? Your support is much appreciated!
Venmo: @Jie-Jenn

Python Source Code

More tutorial videos on my website

Considering support my channel through shopping on Amazon

Want to be more productive? Check out the the gear (Amazon affiliate links) I use when I am working.
Рекомендации по теме
Комментарии
Автор

Hi, great video, but I have a question, how can I implement the autocomplete only on specific words I choose?

mr.indecisive
Автор

This is good example code but the video would be a lot better if you explain the relevant new classes (QCompleter and QStandardItemModel) more in-depth.
Most of the video is spent writing the typical example-program for Qt, that part could have been shorter.
Still thumbs up, thank you!

julianlagg
Автор

How to keep the same behaviour after a comma (", ")?... I mean, like twitter or youtube does when adding tags or hasgtags

wjimenezu
Автор

Can you do a video about how we load the items directly from a database? so that data from a big data table can shown in the autocomplete? Anyway thanks for the video.

todayslottery
Автор

how to do it in QTextEdit box now? you have used QLineEdit .... how to do the same functionality of autocomplete but in QTextEdit box? that would be more fun i guess, and load csv that contains dictionary words... that would be even more fun

ironF
join shbcf.ru