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. How to remove Maximize button on the top right corner of the window.

How to remove Maximize button on the top right corner of the window.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 92 Views
  • 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.
  • C Offline
    C Offline
    Channaveer
    wrote last edited by
    #1

    whenever I create new project, I'll be getting the default window with minimize, maximize and close button. how to customize those button( change size, remove ,add extra...).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi and welcome to devnet,

      AFAIK, you can't change the buttons size. It's the window manager of the OS you are using that is in charge of that.

      As for add/removing them: setWindowFlags with the appropriate flags.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Z Offline
        Z Offline
        zenon
        wrote last edited by zenon
        #3

        Hello,

        On Mac may be try setWindowFlags( Qt::Sheet );

        You should perhaps tell on which OS the question occurs

        jsulmJ 1 Reply Last reply
        0
        • Z zenon

          Hello,

          On Mac may be try setWindowFlags( Qt::Sheet );

          You should perhaps tell on which OS the question occurs

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote last edited by
          #4

          @zenon Rather Qt::WindowMaximizeButtonHint

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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