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. [solved] QPlainTextEdit HTML question
Forum Updated to NodeBB v4.3 + New Features

[solved] QPlainTextEdit HTML question

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 948 Views 2 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.
  • D Offline
    D Offline
    deleted28
    wrote on 13 Jun 2015, 05:35 last edited by deleted28
    #1

    Hello,

    what is bad in the 3rd line ?
    (or is it simply not supported)

        plainTextEdit->appendHtml("<font color = \"red\"> Sample red Text</font>");
        plainTextEdit->appendHtml("<font color = \"#ff0000\"> Sample red Text</font>");
        plainTextEdit->appendHtml("<font color = \"rgb(255,0,0)\"> Sample red Text</font>");
    

    OUTPUT:
    red text
    red text
    black text

    P 1 Reply Last reply 13 Jun 2015, 06:09
    0
    • D deleted28
      13 Jun 2015, 05:35

      Hello,

      what is bad in the 3rd line ?
      (or is it simply not supported)

          plainTextEdit->appendHtml("<font color = \"red\"> Sample red Text</font>");
          plainTextEdit->appendHtml("<font color = \"#ff0000\"> Sample red Text</font>");
          plainTextEdit->appendHtml("<font color = \"rgb(255,0,0)\"> Sample red Text</font>");
      

      OUTPUT:
      red text
      red text
      black text

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 13 Jun 2015, 06:09 last edited by
      #2

      @wally123 Yes it is not supported. Supported formats are the first 2 which you have used. Its documented here.

      157

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted28
        wrote on 13 Jun 2015, 06:22 last edited by
        #3

        Thank you

        1 Reply Last reply
        0

        3/3

        13 Jun 2015, 06:22

        • Login

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