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. Text steps out of line on a rectangle with radius when ListView is delegated to the rectangle. (Solution without using Qt5Compat.GraphicalEffects and OpacityMask)
Forum Updated to NodeBB v4.3 + New Features

Text steps out of line on a rectangle with radius when ListView is delegated to the rectangle. (Solution without using Qt5Compat.GraphicalEffects and OpacityMask)

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

    Hi. I have qml ListView and inside it, I load My ListModel. My delegate component is a rectangle that holds a Text component. the Problem is when I scroll the ListView some alphabet like 'H' step out of the defined Rectangle. My defined rectangle has a round edge (radius), and the alphabet appears on the rounded edge. The problem is also for highlight when it is assigned with rectangle. Is there any solution to it(not Qt5Compat.GraphicalEffects and OpacityMask)?

    The code sample:

    Try it online

    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2

      Add a small margin to the left of the text element?, perhaps I misunderstand what you're asking.....?

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      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