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 Stylesheet for selected Children
Qt 6.11 is out! See what's new in the release blog

QTreeWidget Stylesheet for selected Children

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 931 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.
  • H Offline
    H Offline
    hypnomaki
    wrote on last edited by
    #1

    Hi,
    I have a QtreeWidget where I add custom Widgets of mine.
    Ive added a Stylesheet for Selection

    @QTreeWidget::item:selected{
    color: rgb(255, 255, 0);
    background-color: #1d69e1;
    }@

    The Background works but the Fore-Ground Color doesnt, The Labels on the Widget are always Black.
    Are there any Tags to effect Children as well or any other Soloutions?

    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