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. How to color when drawing QFrame as a line
QtWS25 Last Chance

How to color when drawing QFrame as a line

Scheduled Pinned Locked Moved Solved General and Desktop
qframestylesheetcolor
4 Posts 2 Posters 3.5k 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.
  • J Offline
    J Offline
    Jakob
    wrote on last edited by Jakob
    #1

    When I draw a QFrame as a line using the QFrame::HLine or QFrame::VLine shape, how can I set the color of that line using a stylesheet? It seems both the color, background-color, nor border-color have any effect

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

      Hi
      Setting FrameShadow to "plain" it responded to
      color: rgb(170, 0, 0);

      J 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Setting FrameShadow to "plain" it responded to
        color: rgb(170, 0, 0);

        J Offline
        J Offline
        Jakob
        wrote on last edited by
        #3

        @mrjj Thanx, I knew for sure I already tried this one before, but apparently there was something wrong before then, because the color attribute does work now.

        mrjjM 1 Reply Last reply
        0
        • J Jakob

          @mrjj Thanx, I knew for sure I already tried this one before, but apparently there was something wrong before then, because the color attribute does work now.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Jakob
          well if FrameShadow is not plain
          it does nothing so first i though it didn't work either.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved