Why does QML Rectangle radius is only outside ? [Solved]
-
Why does QML Rectangle radius is only painted outside the rectangle and the insid is always straight ?
-
Duplicates "this thread":http://qt-project.org/forums/viewthread/17794. It would be better if someone could close or delete it.
-
The thread in "Mobile and Embedded" can be remove. It's there by a mistake.
-
I closed the other post. For future reference, if you open a thread in the wrong forum you can always add a note and a moderator can move it to the right place.
-
Thanks.
Can you help me with my question ? -
Regarding your original question, though, can you clarify what you mean by outside the rectangle?
What behavior are you seeing compared to what you expect?
-
If I draw Rectangle on QML and specify radius and border with some width, the Rectangle has an outside radius but the inner rectangle (inside the border) has no radius. I expect that the inner rectangle also have the same radius
-
Can you post a screenshot and a sample of the code you're using, please?
-
Inside radius + border width = (outside) radius
So i guess you set the radius the same value as the border width, right?
-
Yes - You right
-
So, to have an inside radius, you'll have to make radius bigger than the border width.
If this solves your question, could you please edit your first post and add [solved] to it? Thanks.