Results 1 to 6 of 6

Thread: Sizing policy w.r.t QtDesigner

  1. #1
    Join Date
    Jul 2015
    Posts
    3
    Qt products
    Platforms
    Unix/X11

    Default Sizing policy w.r.t QtDesigner

    Hi

    I have a Widget in QT which I want to resize and make it dynamic i.e the size shold not be fixed.When I try to minimize the application,the widget lying within the application should resize accordingly.

    How can I do that?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Sizing policy w.r.t QtDesigner

    That has nothing to do with size policy (or only very little).
    This is the job of layouts.

    Do all containers, starting at the window itself, have layouts?

    Cheers,
    _

  3. #3
    Join Date
    Jul 2015
    Posts
    3
    Qt products
    Platforms
    Unix/X11

    Default Re: Sizing policy w.r.t QtDesigner

    Hi

    Basically there is a main application which has few dockable widgets.I want the size of the widgets modified.So i wrote a code for SetFixedWidth.But everthing gets jumbled up when I try to minimize the main application since widget width is now fixed.
    So I want that the size of widgets gets modified such a way that it is dynamic.

    -Thanks,

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Sizing policy w.r.t QtDesigner

    Yes, the name "fixed size" should be a strong hint that it is not dynamic, no?
    So, just don't do that.

    Cheers,
    _

  5. #5
    Join Date
    Jul 2015
    Posts
    3
    Qt products
    Platforms
    Unix/X11

    Default Re: Sizing policy w.r.t QtDesigner

    But then what is the command for making it dynamic?

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Sizing policy w.r.t QtDesigner

    I am afraid I don't understand.
    There is no "command", layouts are dynamic by default.

    Cheers,
    _

Similar Threads

  1. QThread set scheduling policy
    By corrado1972 in forum Qt Programming
    Replies: 3
    Last Post: 9th June 2013, 21:24
  2. QMainWindow size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2011, 09:34
  3. QDockWidget size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 0
    Last Post: 2nd March 2011, 16:08
  4. WordWrap policy for QLabel
    By anju123 in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2007, 21:52
  5. QMenuBar size policy
    By krivenok in forum Qt Programming
    Replies: 3
    Last Post: 16th January 2006, 15:13

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.