Results 1 to 1 of 1

Thread: stylesheet for QTableView [solved]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2012
    Posts
    57
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default stylesheet for QTableView [solved]

    Hi,
    I am trying to use a tableview with custom icons for the selection indicator. I use these stylesheets below and they work, however the icon is displayed too small. I have set iconSize for the table and other icons I use elsewhere in the same table respond to that but not the selection indicator. How can I increase the size of that indicator?
    The icon is actually quite bigger than displayed in the table.
    Thanks.

    "QTableView::indicator:unchecked { image: url(:/img/unchecked.png);}"
    "QTableView::indicator:checked { image: url(:/img/checked.png);}"));

    Edit: Solved it: "QTableView::indicator { width:66px; height:66px; }"
    Simple really I should have looked better.
    Last edited by Cremers; 11th February 2014 at 14:16.

Similar Threads

  1. Replies: 0
    Last Post: 13th January 2013, 00:20
  2. QTableView paint row in stylesheet hover
    By estanisgeyer in forum Qt Programming
    Replies: 3
    Last Post: 23rd October 2012, 09:17
  3. QTableView and stylesheet horizontal scrolling problem
    By aphexgt in forum Qt Programming
    Replies: 0
    Last Post: 18th October 2012, 23:00
  4. QTableView checkbox center with stylesheet
    By quiet in forum Qt Programming
    Replies: 2
    Last Post: 10th March 2011, 13:52
  5. Replies: 2
    Last Post: 26th November 2009, 04:45

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.