Results 1 to 2 of 2

Thread: Limit window size to certain ranges

  1. #1

    Default Limit window size to certain ranges

    Hi there,

    I've got a window that I want to allow resizing to only specific sizes - say either 50 pixels or anything greater than 100 pixels. (Certain widgets will be hidden when it's down to 50 pixels)

    Can't work out how to do this. Installing an event filter and stopping QResizeEvent where size isn't in the range doesn't help. I think maybe I have to write a QLayout, but can't really work out how I'd achieve what I'm after?

    Many thanks in advance,

    Mark

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

Similar Threads

  1. Restore the size of the window after minimize
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 22nd September 2016, 16:23
  2. update window size
    By eric in forum Newbie
    Replies: 3
    Last Post: 14th January 2008, 10:21
  3. window sizes changing even though max size defined
    By JonathanForQT4 in forum Newbie
    Replies: 3
    Last Post: 6th August 2007, 10:39
  4. QTableWidget columns to expand to window size
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 13th April 2007, 16:02
  5. Replies: 1
    Last Post: 9th February 2007, 09:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.