I made a QWidget and inside I made some other items like QLabels which display images.
Consider what is inside that parent Widget I was trying to get the color where I would click.

Searching I found this thread but it is a bit old and I am not able to translate it to Python. as I cant read C++.


Qt Code:
  1. QPixmap qPix = QPixmap::grabWidget(ui->myWidget);
  2. QImage image(qPix.toImage());
  3. QColor color(image.pixel(0, 1));
To copy to clipboard, switch view to plain text mode 

How would this translate to PyQt5 if it is the correct answer?