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 8 Dec 2015, 15:21 last edited by Jakob 12 Aug 2015, 20:21
    #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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Dec 2015, 18:51 last edited by
      #2

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

      J 1 Reply Last reply 9 Dec 2015, 15:22
      0
      • M mrjj
        8 Dec 2015, 18:51

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

        J Offline
        J Offline
        Jakob
        wrote on 9 Dec 2015, 15:22 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.

        M 1 Reply Last reply 9 Dec 2015, 15:24
        0
        • J Jakob
          9 Dec 2015, 15:22

          @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.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 9 Dec 2015, 15:24 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

          1/4

          8 Dec 2015, 15:21

          • Login

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