Results 1 to 1 of 1

Thread: [QSS] QTreeView item disabled hover state changes

  1. #1
    Join Date
    Dec 2015
    Qt products
    Unix/X11 Windows

    Default [QSS] QTreeView item disabled hover state changes


    My problem is really simple.
    I would like to change the background-color when focusing a disabled QTreeView item.
    So, innocently I wrote this in my QSS:
    Qt Code:
    1. QTreeView::item:disabled:hover
    2. {
    3. background-color: red;
    4. }
    To copy to clipboard, switch view to plain text mode 
    This does not work and I think because of the fact that a disabled item cannot be focused.
    But it is a problem. The entire line is correctly backgrounded except the disabled cell.
    Do you know how to do this in QSS ?
    Last edited by CloudCompany; 24th November 2016 at 14:08.

Similar Threads

  1. Replies: 0
    Last Post: 20th August 2015, 02:19
  2. Replies: 0
    Last Post: 10th June 2014, 13:38
  3. QListView - To select a disabled item
    By agarny in forum Qt Programming
    Replies: 3
    Last Post: 10th July 2011, 01:23
  4. Replies: 1
    Last Post: 2nd December 2010, 10:07
  5. Need to show a menu item with disabled look but functional
    By lalesculiviu in forum Qt Programming
    Replies: 4
    Last Post: 21st October 2009, 15:16


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.