Qt custom window title bar

  • I'm trying to make my own window title bar.
    I removed stadart system title bar by


    and I want make something like that

    image 1 link

    but when I'm setting for example grid layout to main window I have this

    image 1 link

    It's possible to do not change widgets positions on main window?

  • Moderators

    Layouts do not let you "cross" spacers (or any other elements) like that. Think of them like any other widgets. It would make no sense to create two overlapping buttons for example.

    If you want the area in the center to take the space then put a widget in there and give it an expanding size policy.

Log in to reply