Results 1 to 2 of 2

Thread: how to make panel and List View size automatically change with windows

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default how to make panel and List View size automatically change with windows

    Hi,

    I have following question to ask:

    There is a panel in main window. The panel is with fixed width and 5 pixel away from the bottom of main window. Main windows is adjustable.

    - When window size is changed by mouse, how to make the panel height to change with window automaticaly?


    If panel contains one list view. how to make the list view height change automatically when panel is changed?

    Thank you!

  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: how to make panel and List View size automatically change with windows

    Use the Qt Layout system for which there are some specific examples, and almost every other Qt example uses a layout.

Similar Threads

  1. How to draw raised panel around each list item
    By topoden in forum Qt Programming
    Replies: 0
    Last Post: 5th January 2011, 02:12
  2. How can i make widget automatically adjust screen size
    By kapoorsudhish in forum Qt Programming
    Replies: 3
    Last Post: 23rd October 2009, 15:21
  3. Standars windows list view equivalent
    By Vertilka in forum Qt Programming
    Replies: 4
    Last Post: 19th October 2009, 14:22
  4. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 14:43
  5. Replies: 1
    Last Post: 14th May 2007, 14:55

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.