Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTextEdit find text and display

QTextEdit find text and display

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 951 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haney
    wrote on last edited by
    #1

    Hi,
    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,
    Haney.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      So with which part are you having problems?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DBoosalis
        wrote on last edited by
        #3

        Have you looked into "QSyntaxHighlighter":http://qt-project.org/doc/qt-5/qsyntaxhighlighter.html

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved