Results 1 to 4 of 4

Thread: Calculate QListView content dimensions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2006
    Posts
    43
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Calculate QListView content dimensions

    I have a QListView and need to access (or calculate) the dimensions of the contents in pixels (not the viewport() but it's contents). I have successfully done such a thing with the verticalHeader and horizontalHeader of a QTableView in the past, but I have no such header information available to me here.

    It occurred to me that the scroll bars must have this information available to them somehow, otherwise they could not scale appropriately as I resize this QListView; i.e. if the viewport is too small it must calculate the ratio of the viewport dimensions to the content dimensions.

    Does anyone have insight as to how the scroll bars get this information?
    Last edited by Mookie; 9th June 2007 at 02:38. Reason: Subject not descriptive enough

Similar Threads

  1. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13
  2. QListView multiSelection
    By cristiano in forum Qt Programming
    Replies: 3
    Last Post: 19th December 2006, 23:41
  3. Replies: 0
    Last Post: 10th November 2006, 13:46
  4. QTable..Vs.. QListView
    By :db:sStrong in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 21:03
  5. Keeping focus at bottom of QListView
    By jakamph in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2006, 14:45

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.