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. Change color of a string in the QTextEdit

Change color of a string in the QTextEdit

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 816 Views
  • 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.
  • ProkletaOpicaP Offline
    ProkletaOpicaP Offline
    ProkletaOpica
    wrote on last edited by
    #1

    Hey guys

    Does anyone here know how can I find a string in the QTextEdit and change the color of it.

    Thanks for your help.

    1 Reply Last reply
    0
    • Ni.SumiN Offline
      Ni.SumiN Offline
      Ni.Sumi
      wrote on last edited by
      #2

      Hi @ProkletaOpica ,

      Text Finder is for you.
      http://doc.qt.io/qt-5/qtuitools-textfinder-example.html

      ProkletaOpicaP 1 Reply Last reply
      1
      • Ni.SumiN Ni.Sumi

        Hi @ProkletaOpica ,

        Text Finder is for you.
        http://doc.qt.io/qt-5/qtuitools-textfinder-example.html

        ProkletaOpicaP Offline
        ProkletaOpicaP Offline
        ProkletaOpica
        wrote on last edited by
        #3

        @Ni.Sumi Thanks! This is perfect!!!

        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