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. QTreeWidget branch icons
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget branch icons

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 945 Views
  • 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.
  • N Offline
    N Offline
    nostar
    wrote on last edited by
    #1

    I am using a QTreeWidget with a black background so I am no longer able to see the expand icons. On windows the default is the +/- surrounded by a box, and on linux the default is the sideways and down triangle. I've found numerous posts that explain that I can't just change the default color of these icons, but I need to set a new icon altogether. My question is where are all of these icon files in the Qt library? Is there a collection of resource icons somewhere in the Qt library that I can use? If so, what would a image: url() path look like to use icons from the qt library in my application? The only option I see right now is stealing the open and closed icons at the bottom of the page below (qtreeview section) and having to edit the icons in GIMP to reverse the colors so that they are visible with a black background. I find it hard to believe that there are not already some icons within QT for use in a qtreeview with a black background.

    http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview

    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