PDA

View Full Version : scrolling like a spreadsheet



Honestmath
18th February 2006, 03:11
I'm trying to imitate a spreadsheet where the heading and left labels are always visible, but scroll with the main sheet. I've tried scrollview, but there's no way I've seen that you can keep one side or top visible.

Does anybody know if Qt has any options in scrollview or some other class that will allow me to do that? Thanks for any help.

Cheers,
Math

Everall
18th February 2006, 14:00
imitate a spreadsheet where the heading and left labels are always visible
Do you mean the first cells or the headers?

If you want headers, then have a look at :

The book " C++ GUI Programming with Qt 3"

which has an example on how to implement a spreadsheet.

You can get it at :
http://phptr.com/promotions/promotion.as...84&redir=1&rl=1

Cheers

Honestmath
18th February 2006, 16:46
Yes, I've seen the example with the spreadsheet. However, I don't actually want a spreadsheet, just the scrolling ability where the top is always visible but scrolls left/right and the left is always visible but scrolls up/down. I don't actually want the cells. Think of the top, left, and viewport as 3 separate widgets.

Cheers,

Math