I have a QTreeView subclass in which I would like to obtain positions of it's scrollbars (if any). So I do:
Qt Code:
qDebug() << horizontalScrollBar()->mapToParent(horizontalScrollBar()->pos()) << verticalScrollBar()->mapToParent(verticalScrollBar()->pos());To copy to clipboard, switch view to plain text mode
The result is always (0,0), with or without the map at runtime. Please help.
Bookmarks