Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Get current theme highligth colour
Forum Updated to NodeBB v4.3 + New Features

Get current theme highligth colour

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 212 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.
  • S Offline
    S Offline
    scrum_halfling
    wrote on last edited by
    #1

    Hello, everyone!

    Is there anyway to get the current theme colour for the highlight property on a ListView item? What I want to do is to set the colour to match to current theme's instead of hardcoding this value, since it looks like there is no way to fix the highlight on the selected item. Every solution I've seen so far creates a Rectangle or changes the text colour with a custom value. Using the one from current theme would avoid having to change it on every theme available for the application.

    Thank you in advance!

    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