Page 3 of 3 FirstFirst 123
Results 41 to 43 of 43

Thread: QTableWidget issues

  1. #41
    Join Date
    Nov 2006
    Posts
    72
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: QTableWidget issues

    I got it, thanx. Is there a way to change the color of the text which will be drawn over the colored area. For example, I sometimes need white fonts, sometimes black.
    Last edited by Djony; 18th December 2006 at 14:37. Reason: updated contents

  2. #42
    Join Date
    Nov 2006
    Posts
    72
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: QTableWidget issues

    Is there really no way to change the colors of text which paint() method of my delegate's class draws over the colored area? I am using drawText() method of painter.

  3. #43
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QTableWidget issues

    Quote Originally Posted by Djony View Post
    Is there really no way to change the colors of text which paint() method of my delegate's class draws over the colored area? I am using drawText() method of painter.
    Ah, sorry, didn't notice your question

    You can control the colour using QPainter::setPen().

Similar Threads

  1. print QTableWidget
    By chak_med in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 19:46
  2. parsing QtableWidget from a QStackedWidget
    By rosmarcha in forum Qt Programming
    Replies: 10
    Last Post: 13th October 2006, 15:36
  3. QTableWidget editing question
    By Trasmeister in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2006, 19:46
  4. Replies: 6
    Last Post: 5th March 2006, 22:05
  5. How to obtain the width of a QTableWidget?
    By Giel Peters in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 23:34

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
  •  
Qt is a trademark of The Qt Company.