Results 1 to 2 of 2

Thread: QScrollView & QTable

  1. #1
    Join Date
    Feb 2006
    Location
    Raleigh, NC
    Posts
    16
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Windows

    Red face QScrollView & QTable

    I need to have a series of tables in a scrolled window. The thing is the amount of columns on the tables might change through the session. I want the whole table to be visible with no scroll bars and just use the scrolled window to handle if the table goes off the page. I don't want to have to scroll each individual table since I have about 8 tables that need to be easily viewable.

    So is there a way to shut off the scroll bars and make every column visible? I see an ensureVisible function but that scrolls to a particular column which is not what I want. Maybe I just need to resize the table based on the new columns added? I'm not sure how I would recalculate that.

  2. #2
    Join Date
    Feb 2006
    Location
    Raleigh, NC
    Posts
    16
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: QScrollView & QTable

    Nevermind. It seems I can get the contentsWidth on the table and set the minimum size to that. I just had to puzzle it out a little. Sometimes putting the problem down in text makes the path clearer.

Similar Threads

  1. Searching a QTable
    By nategoofs in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2007, 22:15
  2. QScrollView size policy?
    By Henrikas[MI] in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 10:52
  3. QTable column stretchable with minimum Width
    By sunil.thaha in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2006, 13:17
  4. Problem with QTable
    By zlatko in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 10:00
  5. QTable..Vs.. QListView
    By :db:sStrong in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 21:03

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.