Results 1 to 5 of 5

Thread: Applying Layouts causes screen mess-up

  1. #1
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Applying Layouts causes screen mess-up

    Hi,

    I am new to Qt4 and am having troubles understanding the Layout component.

    I wish to have my screen in the layout as in the attached screen shot (client-screen.png).

    This screen is based upon a 800x600 screen layout, which I would like to have as the default size. If the user increases the screen resolution to a larger size, I would like the screen components to adjust accordingly. This I understand is what Layouts are for.

    I have tried every layout in the designer, including splitters, and every time I apply a designer change, it messes up my layout; I am unable to rectify the layout changes, so I "undo" the applied layout. I am sure there is a way to get the layout to work, I just need some help in doing this.

    Can you please see my attached source (testclient.zip) and/or the screen shot and give me advice on how to apply layouts so that my screen will continue to look nice.

    Many thanks in advance,
    Michael
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Applying Layouts causes screen mess-up

    Apply a layout to the main window: try a grid layout. Remove the fixed size policy from the list and table widgets. Apply layout to some of the subordinate widgets. Layouts can only work if you use them.

    Using Layouts in Qt Designer
    Layout Management
    Attached Files Attached Files
    Last edited by ChrisW67; 15th November 2010 at 21:33.

  3. #3
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Applying Layouts causes screen mess-up

    Thank you ChrisW67,

    I appreciate the links and will take the advice. I do hope that I can get this working; I like QT as a screen and UI designer; it works a lot like Delphi, with which I am familiar.

    Again, thank you for your advice and UI file.

    Michael

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Applying Layouts causes screen mess-up

    BTW. It's "Qt" and not "QT". The latter is a technology of the Fruit Company.
    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.


  5. #5
    Join Date
    Nov 2010
    Location
    Canada
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Applying Layouts causes screen mess-up

    ChrisW67 & wysota,

    Thank you very much for your replies and help. The UI file did the trick and the client is very happy with the result.

    As well, I will remember that it is Qt, not "QT".

    Cheers,
    Michael http://www.qtcentre.org/images/smilies/cool.png

Similar Threads

  1. Replies: 8
    Last Post: 20th June 2010, 19:15
  2. QT4 mess up the OpenGL context ?
    By fev in forum Qt Programming
    Replies: 0
    Last Post: 19th October 2009, 10:25
  3. Replies: 8
    Last Post: 1st October 2009, 10:07
  4. How to mess QMdiArea indexes?
    By Raccoon29 in forum Qt Programming
    Replies: 2
    Last Post: 21st April 2008, 21:46
  5. Mess with inherited constructors
    By Pepe in forum Newbie
    Replies: 8
    Last Post: 8th September 2007, 17:16

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.