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 specify border radius in single line stylesheet?
Qt 6.11 is out! See what's new in the release blog

How to specify border radius in single line stylesheet?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 663 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.
  • Y Offline
    Y Offline
    Ylvy
    wrote on last edited by
    #1

    How to specify the border radius in the same line?
    This works:

    border: 4px solid rgb(255, 170, 0);
    

    But the border-radius is undefined, then I tried:

    border: 4px 4px solid rgb(255, 170, 0);
    

    but it didn't work.

    jsulmJ 1 Reply Last reply
    0
    • Y Ylvy

      How to specify the border radius in the same line?
      This works:

      border: 4px solid rgb(255, 170, 0);
      

      But the border-radius is undefined, then I tried:

      border: 4px 4px solid rgb(255, 170, 0);
      

      but it didn't work.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ylvy For which widget are you trying this?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      0
      • M Offline
        M Offline
        mchinand
        wrote on last edited by
        #3

        I think you have to have a separate border-radius. See the specification for border; it only takes one length, the width.

        1 Reply Last reply
        2
        • jsulmJ jsulm

          @Ylvy For which widget are you trying this?

          Y Offline
          Y Offline
          Ylvy
          wrote on last edited by
          #4

          @jsulm pusbutton and labels.

          JonBJ 1 Reply Last reply
          0
          • Y Ylvy

            @jsulm pusbutton and labels.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Ylvy Did you try what @mchinand said?

            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