Results 1 to 3 of 3

Thread: [solved]The elements schouls scale if the User scales down the window

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default [solved]The elements schouls scale if the User scales down the window

    Hi
    I have a problem. For example:
    there are three buttons and three lineEdits in a GridLayout. If I start the program and the user scales down the window, the elements in the GridLayout should shrink dynamically.

    It doesn't work. Does anybody know why?? Or what is to do?

    thanks
    Last edited by Qiieha; 19th April 2011 at 13:06.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: The elements schouls scale if the User scales down the window

    My first guess:
    Have you used the Designer to create the form? If the answer is yes then make sure you applied the qgridlayout to the form itself (selected the "background" form and then click on the layout button).

    //some other reasons might be that the widgets decreased to their minimum size, tell us more about what is actually happening and what do you want to happen, maybe attach a print-screen (or ui file) so that we can see what might be the cause of that behavior.

  3. #3
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: The elements schouls scale if the User scales down the window

    Quote Originally Posted by Zlatomir View Post
    My first guess:
    selected the "background" form and then click on the layout button
    this was the solution
    thank Zlatomir

Similar Threads

  1. Replies: 1
    Last Post: 18th August 2010, 13:39
  2. User defined rotations and scales with the mouse?
    By qlands in forum Qt Programming
    Replies: 1
    Last Post: 3rd August 2010, 19:06
  3. Replies: 0
    Last Post: 11th May 2009, 02:28
  4. QwtPlot: how to auto-scale two Y scales?
    By paradiza in forum Qwt
    Replies: 4
    Last Post: 24th March 2009, 01:28
  5. Replies: 11
    Last Post: 2nd August 2007, 20:31

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.