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 Disable Maximise button of Main Window
Qt 6.11 is out! See what's new in the release blog

How to Disable Maximise button of Main Window

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.9k 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.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    Hi All

    I have created a Main Window.
    I want to disable maximise button of this window.

    I tried to do this

    @
    QWidget::showMaximized ();
    setWindowFlags(Qt::WindowMinimiseButtonHint);
    @
    With above code it is disabling maximise button but as I m opening my window in Maximised mode bottom part of my window is gettiong hided in TaskBar.How to resolve this

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kitten
      wrote on last edited by
      #2

      i think you can use showfullscreen()

      www.kitten.mihanblog.com

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Indrajeet
        wrote on last edited by
        #3

        Hi Kitten

        Not working in fullscreen mode I m not even able to see titlebar.

        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