Hello,
I have a QTableView widget with only one row, that is "scrolled" by a custom scrollbar of mine. This works fine when i have widget that contains both the tableview and the scrollbar, as in:
Qt Code:
l->addWidget(tableview); l->addWidget(scrollbar); wid->setLayout(l);To copy to clipboard, switch view to plain text mode
Since QTableView inherits QAbstractScrollArea, i though i could make my scrollbar part of the QTableView item. Not so. When i call setScrollBar(scrollbar) it only shows an empty scrollbar. I am guessing this is because the scrollbar is associated with the scroll logic of the tableview.
Any way to disassociate it with the tableview/abstractscrollarea scrolling logic and make it behave as totally independent component?
Bookmarks