Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTextEdit find text and display
haney last edited by
In my TextEditor application, I am using QTextEdit as an editor. Now when I find a word, I need to display all the lines which contain that word only. Remaining lines must not be displayed.
Again when I enter a new word or clear findText, my editor has to display accordingly.
Please share your suggestions. Appreciate your help in this regard.
Thanks in advance,
So with which part are you having problems?
DBoosalis last edited by
Have you looked into "QSyntaxHighlighter":http://qt-project.org/doc/qt-5/qsyntaxhighlighter.html