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 maximize button in widgets [SOLVED]
Forum Update on Monday, May 27th 2025

How to disable maximize button in widgets [SOLVED]

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

    How can we prevent widgets from maximizing. I tried setting a limit on maximum size but didn't work

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      "setFixedSize()":http://qt-project.org/doc/qt-4.8/qwidget.html#setFixedSize function maybe?
      @this->setFixedSize(this->size());@

      It sets fixed size of the widget, as "drawn" in form editor.

      Regrads,
      Jake


      Code is poetry

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on last edited by
        #3

        O thanks! worked like a charm

        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