Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qss qtreeview and checkboxes
Qt 6.11 is out! See what's new in the release blog

Qss qtreeview and checkboxes

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fsmoke
    wrote on last edited by
    #1

    How to stylize checkboxes in treeview?
    !http://www.gamedev.ru/files/images/gd_qtreeview.png(qtreeview)!

    PS
    I post this question at several forums - but still no answers, may be developers can answer this.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      For example with qss:
      @
      treeView->setStyleSheet(
      "QTreeView::indicator:checked { image: url(:/img/checked.png); } "
      "QTreeView::indicator:unchecked { image: url(:/img/unchecked.png); } "
      );
      @

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fsmoke
        wrote on last edited by
        #3

        Great, it works for me, thank you!!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved