Results 1 to 3 of 3

Thread: Fixed size and scrollable ListView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    2
    Thanked 7 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Fixed size and scrollable ListView

    Hi,

    I have an application that shows a rectangle in the middle of the screen which contains 2 visual items: a ListView at the top, and a button column at the bottom and both items are anchored together to be above/below each other.
    The problem I'm having is that if the list gets too big, the list items appear behind the buttons at the bottom, or just grow upwards when i scroll down if i remove the anchoring.

    How do i make the list fixed in size inside the rectangle, and make it hide certain elements when it gets too big? So then i can scroll down and the hidden elements would appear and the list doesn't grow outside of the frame.
    I could solve this by hiding each element when its Y value is more than the top of the rectangle or less than the bottom of it, but there's gotta be a better way to do it.

    Thanks!

    edit: the picture shows the list only, there's empty space around it.
    Attached Images Attached Images

Similar Threads

  1. How to fixed the size of the QGraphicsScene.?
    By syclopse in forum Qt Programming
    Replies: 9
    Last Post: 4th July 2011, 13:41
  2. Replies: 4
    Last Post: 20th November 2009, 12:25
  3. Fixed size axes
    By wim12 in forum Qwt
    Replies: 4
    Last Post: 15th May 2009, 12:37
  4. A fixed size window?
    By adorp in forum Qt Tools
    Replies: 4
    Last Post: 25th July 2007, 18:57
  5. QDockWidget fixed size?
    By Michiel in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2006, 02:48

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.