Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to get rounded corners of button in QML
QtWS25 Last Chance

How to get rounded corners of button in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 9.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.
  • mit_cruzeM Offline
    mit_cruzeM Offline
    mit_cruze
    wrote on last edited by
    #1

    I want to get rounded corners of button

    C 1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Hi,

      Did you already find the QML roundbutton ?

      Eddy

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      2
      • mit_cruzeM mit_cruze

        I want to get rounded corners of button

        C Offline
        C Offline
        c64zottel
        wrote on last edited by
        #3

        @mit_cruze Or, if RoundButton is to strict, you can customize QtQuick.Controls 2.0 buttons like this:

        Button {
            background: Rectangle {
                color: "chartreuse"
                border.width: 1
                border.color: "blue"
                radius: 20
            }
        
            text: "Round like this?"
        }
        

        Docs: https://doc.qt.io/qt-5/qml-qtquick-controls2-button.html

        Mind the version of QtQuick.Controls 1.x != 2.x

        1 Reply Last reply
        2

        • Login

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