Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt custom window title bar
Forum Updated to NodeBB v4.3 + New Features

Qt custom window title bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alatriste
    wrote on last edited by
    #1

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

    setWindowFlags(Qt::FramelessWindowHint);
    

    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?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved