我试图从另一个类访问用QLineEdit编写的文本,但它返回的是一个空字符串。在下一个类Container0中,我实现了QLineEdit小部件。(我希望这不是个坏主意)当前,当我在QLineEdit中写入一些东西,然后转到菜单"File -> Export“并插入一个路径时,代码会调用类Export及其函数export,它应该读取我在QLineEdit中编写的字符串,并在路径中打印它。### <- This is
我不知道如何在python中干净地重用派生类的类方法来构造子类: def __init__(... lots of parameters .... )@classmethod .... read lots of parameters ....return cls(.... lots of parameters .... )
class Der