Results 1 to 3 of 3

Thread: a question about QTable

  1. #1
    Join Date
    Oct 2006
    Posts
    15
    Qt products

    Default a question about QTable

    hi, everyone

    i met a question about QTable. i want to set the background of the current (row, col) by subclassing QTable and implementing the paintCell funtion.

    in the paintCell funtion, if the current cell is selected, the QColorGroup::Background is set to the proper color, then QTable:aintCell(...) funtion is called. but it doesn't work.

    anyone has any advice?Thanks advance

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: a question about QTable

    try setAutoFillBackground() function....
    hope this helps

  3. #3
    Join Date
    Oct 2006
    Posts
    15
    Qt products

    Default Re: a question about QTable

    Quote Originally Posted by aamer4yu View Post
    try setAutoFillBackground() function....
    hope this helps
    thank you,aamer4yu

    but in Qt3, there isn't setAutoFillBackground function.

Similar Threads

  1. [Qt-3] QTable question
    By a550ee in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2006, 11:03
  2. copy-paste the content of a QTable
    By greencastor in forum Qt Programming
    Replies: 2
    Last Post: 13th September 2006, 12:20
  3. QTable column stretchable with minimum Width
    By sunil.thaha in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2006, 13:17
  4. Problem with QTable
    By zlatko in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 10:00
  5. QTable..Vs.. QListView
    By :db:sStrong in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 21:03

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.