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. [Split] Font color in QTextEdit
Qt 6.11 is out! See what's new in the release blog

[Split] Font color in QTextEdit

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    How to set font color to my QTextEdit ?? any help ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      [quote author="Thomas Kennedy" date="1302252654"]How to set font color to my QTextEdit ?? any help ?[/quote]
      Easy way is to use rich text to set the text, but it depends on what you want to achieve exactly. You can also use QTextDocument to manipulate the text document. But QTextEdit even has a setTextColor() method to make it really easy for you.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I split off this question into it's own thread as it was completely unrelated to the previous discussion in the "old thread":http://developer.qt.nokia.com/forums/viewthread/4645

        Please open a new thread in the correct forum if you have new questions, don't just reply in any old thread.

        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