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 we can restrict user to resize window?
Forum Updated to NodeBB v4.3 + New Features

How we can restrict user to resize window?

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

    I want my window should have a fixed size and user cannot increase its size during run time.

    Pratik Agrawal

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xeroblast
      wrote on last edited by
      #2

      just set the minimum & maximum size according to the size of the window.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on last edited by
        #3

        Ya this is working but i found better we can call @setfixedsize ();@ function .

        Pratik Agrawal

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="xeroblast" date="1318653231"]just set the minimum & maximum size according to the size of the window.[/quote]

          [quote author="pratik041" date="1318654034"]Ya this is working but i found better we can call @setfixedsize ();@ function .[/quote]

          Both approaches should work but I share the opinion that "QWidget::setFixedSize":http://doc.qt.nokia.com/4.7/qwidget.html#setFixedSize is more appropriate as it will automatically set both the minimum and maximum sizes of the widget. :)

          http://anavi.org/

          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