Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单查询:
如果 GUI 小部件窗口被隐藏,它会接收来自其他对象的信号吗?在我们的 Qt 应用程序中,我们已经看到了这个问题/行为。
但是,当显示窗口时,它会接收并处理它接收到的所有信号。
每个 QObject(以及每个 QWidget)都会接收信号,直到它被破坏或信号断开。能见度无所谓。
如果您在隐藏 QWidget 时未断开信号,则会接收并处理它们。