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. Text decoration color in Qt Style Sheet

Text decoration color in Qt Style Sheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 290 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.
  • A Offline
    A Offline
    anon834578
    wrote on last edited by
    #1

    I want my QLabel text to be crossed off with line-through text decoration in QStyleSheet but I want the line to be colored.
    Simple text-decoration-color does not work in QTStyleSheets. Is there any way to color text-decoration in Qt?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and Welcome to the forums.
      As far as I know its not possible with stylesheets as text-decoration-color or
      text-decoration-xxxx is not support currently. its based loosely on CSS3 but
      its not a goal to follow it.

      Can I ask the exact use case as it would be quite easy to make a custom label that can have line-through
      one line of text if the goal is just that.

      ONE LINE OF TEXT
      where you can set the color.

      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