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 implement this shape?
Forum Updated to NodeBB v4.3 + New Features

How to implement this shape?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 306 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.
  • Q Offline
    Q Offline
    QTLeearn
    wrote on last edited by
    #1

    Screenshot from 2019-11-29 11-33-29.png

    The black color is the background, I would like to ask how to draw the shape with the grey background color and the white border?( The top border should be transparent), I am currently combining rectangles but it's too complex
    Thank you in advance!

    ODБOïO 1 Reply Last reply
    0
    • Q QTLeearn

      Screenshot from 2019-11-29 11-33-29.png

      The black color is the background, I would like to ask how to draw the shape with the grey background color and the white border?( The top border should be transparent), I am currently combining rectangles but it's too complex
      Thank you in advance!

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @QTLeearn hi
      few solutions here https://stackoverflow.com/questions/50644627/qml-rounded-rectangle-with-border?rq=1

      or simply use an svg Image

      Q 1 Reply Last reply
      0
      • ODБOïO ODБOï

        @QTLeearn hi
        few solutions here https://stackoverflow.com/questions/50644627/qml-rounded-rectangle-with-border?rq=1

        or simply use an svg Image

        Q Offline
        Q Offline
        QTLeearn
        wrote on last edited by
        #3

        @LeLev Yeah I am doing the similar way but can we use sth easier like: ShapePath type?

        ODБOïO 1 Reply Last reply
        0
        • Q QTLeearn

          @LeLev Yeah I am doing the similar way but can we use sth easier like: ShapePath type?

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @QTLeearn said in How to implement this shape?:

          can we use sth easier like: ShapePath type?

          yes, you can try

          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