Is there a way to have a multi-line text input widget with autocomplete?
-
Using (for reference)
- Qt 5.15.2
- C++11
- CMake
- Windows 10
I'm currently using
QCompleterto 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 requiringQTextEditor a similar multi-line text input widget for the task. Is there a way to haveQCompleterwork withQTextEdit?One solution I've thought of is creating multiple
QLineEditwidgets, and setting the completer for each widget, which does not seem very efficient or smart. Any help is appreciated.TIA, arnitdo
-
Using (for reference)
- Qt 5.15.2
- C++11
- CMake
- Windows 10
I'm currently using
QCompleterto 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 requiringQTextEditor a similar multi-line text input widget for the task. Is there a way to haveQCompleterwork withQTextEdit?One solution I've thought of is creating multiple
QLineEditwidgets, 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.