Results 1 to 5 of 5

Thread: Fix element in risizing window

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Fix element in risizing window

    Hi, as mentioned you may want take a closer look to the layout system which is used by Qt, which is indeed very powerful and usable..

    For your case it is always good to play in the designer and see how the widgets behave. Select your "parent/container widget" and place in this your browser and your edit. then lay them out. Use for that a QVBoxLayout. In that options you can edit the margin and spacing... then select the editor and set its min and max height to 100. then you should have your desired behavior.

    Lykurg

    EDIT: I have attached a simple ui of what you want. If you don't want use the designer translate the ui via uic to a h file and look inside and "steal" the pure c++ code.
    Attached Files Attached Files

Similar Threads

  1. How to set Qt window transparent?
    By montylee in forum Qt Programming
    Replies: 17
    Last Post: 24th December 2013, 20:11
  2. QMain Window Problem
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2008, 15:51
  3. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  4. Change shape of window / animate window
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 31st October 2007, 08:16
  5. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41

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
  •  
Qt is a trademark of The Qt Company.