how to move the horizonal scrollbar in a QTReeView through code
Solved
General and Desktop
-
Hi all
I have a QtreevIew in which I have 3 columns , How to can move the horizontal scrollbar using code so that column 2 is visible -
Hi all
I have a QtreevIew in which I have 3 columns , How to can move the horizontal scrollbar using code so that column 2 is visible@Qt-Enthusiast
QTreeView::scrollTo()or alternatively (only horizontal scrolling):
QHeaderView* h = treeView->header(); treeView->horizontalScrollBar()->setValue( h->sectionViewportPosition(1) );