Results 1 to 1 of 1

Thread: QTableView -Selection background color

  1. #1
    Join Date
    Sep 2010
    Location
    Chennai
    Posts
    37
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QTableView -Selection background color

    Hi,
    I am using the following code for set the style for the table in simulator(S60).

    searchTable->setStyleSheet("background: rgb(255,255,255);color:rgb(0,0,0); font-family:Arial Narrow;font-size:20px; border: 4px outset rgb(255,255,255);gridline-color: #669933;"
    "selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #486909, stop: 1 white);"
    );

    But When I am selecting the element in the data I got the following output. Please find the attachment. Thanks in advance.. What I did wrong in this code..
    Attached Images Attached Images

Similar Threads

  1. Using a QFrame as a color selection indicator
    By KShots in forum Qt Tools
    Replies: 8
    Last Post: 14th June 2011, 23:55
  2. QPlainTextEdit selection color?
    By jajdoo in forum Newbie
    Replies: 3
    Last Post: 18th July 2010, 09:39
  3. Changing the background color of a cell in a QTableView
    By scarleton in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2010, 13:23
  4. Replies: 2
    Last Post: 26th November 2009, 04:45
  5. Selection color
    By jnana in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2006, 13:28

Tags for this Thread

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.