Hello,
I'd like to add new arrows in order to have more flexible control for my tableview. For example, it may be scrollng to top and bottom of table.
I have no idea, how i an do it.
Hello,
I'd like to add new arrows in order to have more flexible control for my tableview. For example, it may be scrollng to top and bottom of table.
I have no idea, how i an do it.
Probably the most straightforward way would be to subclass QScrollBar and make a composite widget with "scroll to top" tool button, a normal QScrollBar, and a "scroll to bottom" tool button stacked in a vertical layout. Use QAbstractScrollArea::setVerticalScrollBar() to replace the default scroll bar with your custom one. Your custom scroll bar will have to emit new signals for the two tool button clicks, and of course your view will have to respond to them, so you may need to subclass QTableView as well.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks