I need to somehow place my custom widget QfieldCell with QtCreator into some .ui file, and then use it in code.
(我需要以某种方式将我的自定义小部件QfieldCell和QtCreator放入某个.ui文件中,然后在代码中使用它。)
class QFieldCell(QtWidgets.QPushButton):
def __init__(self, column, row):
QtWidgets.QPushButton.__init__(self)
self.x = column
self.y = row
self.clicked.connect(self.click)
def click(self):
print "me"
I found some articles about this, but all I get is this:
(我找到了一些有关此的文章,但我得到的只是:)
now I have no idea how to connect this 2 together.
(现在我不知道如何将这2连接在一起。)
ask by Rreit translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…