0
如何删除警告如从控制台以下警告:从控制台中删除警告
QObject::startTimer: QTimer can only be used with threads started with QThread
QObject::startTimer: QTimer can only be used with threads started with QThread
QObject::startTimer: QTimer can only be used with threads started with QThread
更新:这只是一个猜测,它提出,因为我使用ElementTree的解析XML文档转换成一个元素树:
def parse(source, parser=None):
tree = ElementTree()
tree.parse(source, parser)
return tree
,如果你指导我,我可以使用它以外的ElementTree其他解析器我将不胜感激..
你的意思是一般情况下,还是只是QObject相关的警告? – BlackVegetable
@RaydelMiranda这是来自Qt的警告消息,如果出现错误,它会在_runtime_中发布。 –
当我关闭Qwidget窗口时,它显示在我的控制台中。是的,我的意思是如何从控制台解决此特定警告。 –