Remove the Title Bar of a QT Window While Keeping the Borders in Place

67 Views Asked by At

I'm having trouble removing the whole title bar of my qt application while keeping the borders in place.

I use the code below but there still remaining part of the title bar as you can see in the picture.

import QtQuick
import QtQuick.Controls

ApplicationWindow {
    visible: true
    width: 600
    height: 400
    flags: Qt.Window | Qt.CustomizeWindowHint
    color: "white"
}

picture

I can use Qt.FramelessWindowHint but then I have to implement resizing and shadow.

How can I possibly do this? I just want to replicate the title bar just like on Google Chrome or Firefox. Any idea?

0

There are 0 best solutions below