Results 1 to 4 of 4

Thread: Qt Designer - Fixed size main form

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qt Designer - Fixed size main form

    Hi,

    I would like to create a fixed sized mainform using qt designer although setting the size policy property to fixed does not seem to be implementing this?

    Can anyone help with creating a fixed sized mainform using Qt3 Designer?

    Kind Regards

    nlev.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Designer - Fixed size main form

    As far as I remember you can't do it using Designer only. There is a property called "resizeMode" that does the trick, but I think it is only available for forms that are derived from QDialog. Verify that and if it is the case, use setResizeMode() from within hand written code.

  3. The following user says thank you to wysota for this useful post:

    nleverin (4th July 2007)

  4. #3
    Join Date
    Dec 2006
    Posts
    33
    Thanks
    10
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt Designer - Fixed size main form

    "resizeMode" is only available for QHeaderViewand QListView. I managed to create a fixed size main dialog by going to Designer and setting both the MaximumSize and MinimumSize properties to the desired geometry.
    Jim L
    Seattle, WA

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Designer - Fixed size main form

    That's not a right thing to do. It's better to apply a size constraint on the dialog's layout. The constraint should be set to SetFixedSize. Since Qt 4.4 you can do that from within Designer.

Similar Threads

  1. Designer not adjusting size right
    By Brandybuck in forum Qt Tools
    Replies: 8
    Last Post: 29th July 2006, 10:35

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.