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. Preventing an image from overlapping its parents corners
Qt 6.11 is out! See what's new in the release blog

Preventing an image from overlapping its parents corners

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 814 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Good day fellow programmers,
    we need your help designing our awesome new software.

    The situation: We've designed an item which consists of a rectangle with rounded corners and a small frame.
    This items child is an image which is set to fill its parent.

    The problem: Since the item has rounded corners but the image doesn't, its corners are overlapping the items frame.

    Is there any way to force the image to stay in its parents frame?

    Thanks in advance!

    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