[Solved]Rounded corners of outer most frame
-
wrote on 29 Apr 2015, 08:05 last edited by PP99
Is it possible to achieve rounded corners at the outermost frame? I have managed to remove Windows default border, menu bar, title etc.
I am trying to achieve it using QML, Background image, Rectangle and its property:Radius. I use a rectangle as child of item and get the effect however I want the main container to be curved at corners. Want to achieve this .
I am just starting out on Qt. Thanks for your time. -
Is it possible to achieve rounded corners at the outermost frame? I have managed to remove Windows default border, menu bar, title etc.
I am trying to achieve it using QML, Background image, Rectangle and its property:Radius. I use a rectangle as child of item and get the effect however I want the main container to be curved at corners. Want to achieve this .
I am just starting out on Qt. Thanks for your time.Hi @PP99 and Welcome,
Try out the following:import QtQuick 2.4 import QtQuick.Window 2.2 Window { width: 400 height: 400 flags: Qt.FramelessWindowHint color: "transparent" Rectangle { x: 10 y: 10 width: parent.width-20 height: parent.height-20 radius: 15 } }
-
wrote on 29 Apr 2015, 10:04 last edited by
Thank you very much. It works.
-
@PP99 You're Welcome :). Please mark the post as solved. You will need to edit the post title and prepend [Solved].
1/4