Is there a way to have a multi-line text input widget with autocomplete?
Solved
General and Desktop
-
Using (for reference)
- Qt 5.15.2
- C++11
- CMake
- Windows 10
I'm currently using
QCompleter
to provide autocomplete suggestions in my project. OnlyQLineEdit
(i.e single line) supports QCompleter as the completer. The user input will span multiple lines, and I will be requiringQTextEdit
or a similar multi-line text input widget for the task. Is there a way to haveQCompleter
work withQTextEdit
?One solution I've thought of is creating multiple
QLineEdit
widgets, and setting the completer for each widget, which does not seem very efficient or smart. Any help is appreciated.TIA, arnitdo
-
-
@raven-worx Thanks a lot for the quick response! I'll look into it.