i am writing an ide using qt (on c++) and i need to add auto completion feature to it
so i want to know :
how to do that (i am using qtPlainTextEdit) ?
what the data structure i should use ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you should take a look at this:
http://qt-project.org/doc/qt-4.8/tools-customcompleter.html
I used this example to understand CodeCompletion and I think it is fine 🙂
[edit]
Qt has a own class for such purpose called QCompleter: http://qt-project.org/doc/qt-4.8/qcompleter.html