PYQT5|编程经验|爬坑|分享|2|设置Tab widget页面隐藏

设置Tab widget页面隐藏

#隐藏所有的Tab widget页面

self.tabBar = self.tabWidget_Main.findChild(QTabBar)

self.tabBar.hide()

设置tab widget某一页显示

self.toolButton_ContactAuthor.clicked.connect(self.click_ContactAuthor) # 按钮连接

def click_ContactAuthor(self):

self.tabWidget_Main.setCurrentIndex(14)