Results 1 to 4 of 4

Thread: QTableView paint row in stylesheet hover

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTableView paint row in stylesheet hover

    Hi guys,

    I have a QTableView with items from a result of a QSqlQueryModel. So far, so good, created a stylesheet so that when the mouse pointer was placed on an item, a color was painted. Running perfectly, but not found a way to make the entire line was painted in this case. There are as I do so with stylesheets?

    Then my stylesheet:

    Qt Code:
    1. QTableView::item:hover {
    2. background-color: rgb(185, 210, 235);
    3. }
    To copy to clipboard, switch view to plain text mode 

    See the picture below.
    Thanks,

    Marcelo Estanislau
    Brazil
    Attached Images Attached Images

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.