我想在PyQT中找出如何设置鼠标滚轮事件?我需要它,这样我就可以将它附加到Qscroll区域 #set the parent of scrollArea on the frame object of the computersself.scrollArea.setWidget(self.ui.Main_Body)
使用PyQt,我试图创建一个可以动态添加或删除小部件的界面。我想为要添加或删除的小部件定义一个单独的类。我似乎无法让我实例化的小部件显示在主界面中。下面是我使用的代码:import sys
def __init_self.pButton_add.setText('button to add other widgets')