怎么在TableWidget中捕获垂直滚动条的移动事件

2024-11-29 08:04:26
推荐回答(1个)
回答(1):

filesTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
QScrollBar *scrolbar = filesTable->verticalScrollBar();
QObject::connect((QWidget*)scrolbar, SIGNAL(valueChanged(int)),
this, SLOT(onMyScrollClicked(int)));、、

仅供参考~