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