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.
在我使用这个功能之后
QPixmap::grabWindow(QApplication::desktop()->winId(),50,100,950,700);
我的应用程序被冻结,我无法在我的应用程序中使用其他按钮。为什么呢?
它适用于我的 Qt 安装(OS X 10.6.8 上的 4.8)。在调用 QtGUI 中的任何内容之前,请确保您有一个 QApplication 实例。