Results 1 to 3 of 3

Thread: How we can set textcolor in a QTextTable.

  1. #1
    Join Date
    Jun 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy How we can set textcolor in a QTextTable.

    Hi,

    Please give some idea about setting text color for a QText Table entries.

    I would like to give two different text color for 2 columns contents of QTextTable.How it is possible??

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How we can set textcolor in a QTextTable.

    QTextTableCell::format () gives you a QTextCharFormat on which you can call textOutline () which returns a QPen which you can set a QColor to.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jun 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How we can set textcolor in a QTextTable.

    Thanks for your suggestion.

Similar Threads

  1. QTextTable border
    By gigi in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2010, 12:11
  2. TextColor in QTextEdit
    By johnmauer in forum Qt Programming
    Replies: 3
    Last Post: 16th June 2010, 13:08
  3. QTextTable is slow!
    By Ishmael in forum Newbie
    Replies: 6
    Last Post: 29th September 2009, 20:25
  4. qtexttable row's height
    By dreamer in forum Qt Programming
    Replies: 0
    Last Post: 12th June 2008, 15:26
  5. Help with QTextTable
    By fwohlfert in forum Newbie
    Replies: 1
    Last Post: 1st November 2006, 09:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.