//事件捕获code bool BitcoinGUI::eventFilter(QObject *object, QEvent *event) { //捕获状态提示事件 if (event->type() == QEvent::StatusTip) { //如果当前使用状态栏显示其他内容,请阻止从setstatustip()添加文本。 if (progressBarLabel->isVisible() || progressBar->isVisible()) return true; } return QMainWindow::eventFilter(object, event); }