View Full Version : QScrollView & QTable

28th February 2006, 16:56
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.

28th February 2006, 17:22
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.