Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved How to change the color of datatypes for the given input text?

    The Lounge
    2
    2
    720
    Loading More Posts
    • 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.
    • Kavi
      Kavi last edited by

      We are trying to create an environment similar to code blocks.For example when we type the int datatype it gets highlighted. Similarly it should change the color of the datatype when we give input in set text.

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Check this out: http://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • First post
          Last post