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. Custom QML Label Shape
Qt 6.11 is out! See what's new in the release blog

Custom QML Label Shape

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

    I want to look my label as Below Image: There will one row layout which will contain 2 Label (Hello & Bye)

    0_1561459156568_Screenshot from 2019-06-25 12-39-50.png

    J.HilkJ 1 Reply Last reply
    1
    • K Kaushik_19

      I want to look my label as Below Image: There will one row layout which will contain 2 Label (Hello & Bye)

      0_1561459156568_Screenshot from 2019-06-25 12-39-50.png

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Kaushik_19
      hi and welcome,
      so out of the box, it is not possible what you want to do. Your Item's will always be Rectangles no matter what, but you can draw your own custom border and overlap them somewhat. That way you will get the desired effect.

      You could do that for example via a Canvas:
      https://doc.qt.io/qt-5/qml-qtquick-canvas.html


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • K Offline
        K Offline
        Kaushik_19
        wrote on last edited by
        #3

        Thanks @J-Hilk for reply. I ll try Canvas Method and revert back

        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