Results 1 to 3 of 3

Thread: The use of SizePolicy

  1. #1
    Join Date
    Sep 2006
    Posts
    23
    Thanks
    8
    Qt products
    Qt3 Qt4

    Default The use of SizePolicy

    Hi all,

    from to time I come back to QT 4, so I regret not having much time to understand QT deeply. I have been wondering how QT uses the sizepolicy in qwidgets. Do you have a sample just to help people learn the way it works ?

    This is maybe the first of some questions. I hope I don't get you bored.

    Thanks in advance.

    Placido.

  2. #2
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The use of SizePolicy

    Try this link to QSize
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

  3. #3
    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: The use of SizePolicy

    Quote Originally Posted by Placido Currò View Post
    Do you have a sample just to help people learn the way it works ?
    The best way to learn how it works is to take Designer, place a few buttons on a form, apply a layout on the form and then start changing size policies of buttons and look what results it gives when you start resizing the form (you can use the "preview" functionality for that). Just remember size policies only have influence on widgets that are inside a layout.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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.