title: snapshoot of widget pyqt5
body: <p>Hi every one I am traying to get a snapshoot of a widget using pyqt5 I am using this code but I can't create an object of the class QScreen
  I get an error : </p>
  
  <blockquote>
    <p>PyQt5.QtGui.QScreen cannot be instantiated or sub-classed</p>
  </blockquote>
  
  <pre><code>import sys
  from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtGui import QPixmap,QScreen
  from PyQt5.QtWidgets import QApplication    
  from datetime import datetime
  
  date = datetime.now()
  
  filename = date.strftime('%Y-%m-%d_%H-%M-%S.jpg')
  
  app = QApplication(sys.argv)
  
  sc=QtGui.QScreen() 
  
  sc.grabWindow(QApplication.desktop().winId()).save(filename, 'jpg')
  </code></pre>