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 的 MainWindow 类中。
有什么方法可以注册特定 QWidget 的绘制事件,所以我自己的函数将被调用?
寻找事件过滤器。它会帮助你