Results 1 to 2 of 2

Thread: Layouts and form resizing

  1. #1
    Join Date
    Mar 2009
    Location
    California, USA
    Posts
    31
    Thanks
    2
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Layouts and form resizing

    I have been studying some of the examples and demos as a way to learn about Qt and Qt Creator. My initial goal is to design a dialog. When I preview the dialog, I want the two buttons in the lower right corner to maintain their positions relative to the lower right corner of the dialog. I am not having much luck with this effort.

    I have included the qsqlconnectiondialog.ui file from the Sqlbrowser demo to demonstrate my problem. When I look at the properties of the objects in this file, the dialog has a layout section at the bottom. How do I get this in mydialog.ui?

    I would sincerely appreciate any help

    Gary
    Attached Files Attached Files

  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: Layouts and form resizing

    You need to click on the form and apply one of the layouts (from the toolbar on the top of the Designer window) to the whole form. In your case you will also need a vertical spacer (the blue spring) to push the button box to the bottom edge of the form.
    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.


Similar Threads

  1. Layouts to ease resizing... [solved]
    By Dumbledore in forum Qt Tools
    Replies: 6
    Last Post: 16th February 2008, 16:06
  2. resizing down problem
    By MrGarbage in forum Qt Tools
    Replies: 1
    Last Post: 23rd October 2007, 19:37
  3. Suggestions for checkbox form layout
    By MrGarbage in forum Qt Tools
    Replies: 1
    Last Post: 25th July 2007, 23:07

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.