Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Color Underline ( stylesheet )

    General and Desktop
    2
    3
    5129
    Loading More Posts
    • 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
      Sorin last edited by

      Can I choose a color for the line under the text?( just for that line, I don't want to color the text of the widget ). Something like:

      @widget->setStyleSheet( " QToolButton {text-decoration: underline color blue} ")@

      If not any idea about how should I do it?
      Thanks!

      There are only 10 types of people in the world: Those who understand binary, and those who don't

      1 Reply Last reply Reply Quote 0
      • S
        Sorin last edited by

        I'm asking because I'm trying to do this "control":http://img839.imageshack.us/img839/3062/colorcontrol.png , when I press the combo arrow I want to call QColorDialog, this is easy , the hard part is to create that combo and update its color with the one that I choose from QColorDialog

        There are only 10 types of people in the world: Those who understand binary, and those who don't

        1 Reply Last reply Reply Quote 0
        • V
          VC15 last edited by

          You could create a pixmap in runtime with letter A underlined with appropriate color and display this pixmap. This solution is likely to be not very fast but maybe it will work.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post