qt屏幕抓图

QPixmap::grabWindow(QApplication::desktop()->winId());

QPixmap有一个grabWindow函数,即可

原文地址:https://www.cnblogs.com/baizx/p/1799172.html