Important: Please read the Qt Code of Conduct -

[Solved]Rounded corners of outer most frame

  • 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.

  • Moderators

    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

  • Thank you very much. It works.

  • Moderators

    @PP99 You're Welcome :). Please mark the post as solved. You will need to edit the post title and prepend [Solved].

Log in to reply