I'm not a OSX user, so I don't know the answer, but what I know is that the getColor method could be done better.
I understand that it's purpose is to grab the (0,0) pixel color from widget, so I don't see why you need to grab the whole desktop ? Can't you use the QWidget::winId()? And if all you need is this one pixel, pass a QRectF(0,0,1,1) to QPixmap::grabWindow, no need to scale anything, so your method will look like:
Qt Code:
  1. QRgb getColor(const QWidget * grabme)
  2. {
  3. DEBUG_HIGH_LEVEL << Q_FUNC_INFO;
  4.  
  5. QPixmap pix = QPixmap::grabWindow(grabme->winId(),0,0,1,1);
  6. QImage im = pix.toImage();
  7. QRgb result = im.pixel(0,0);
  8.  
  9. DEBUG_HIGH_LEVEL << "QRgb result =" << hex << result;
  10.  
  11. return result;
  12. }
To copy to clipboard, switch view to plain text mode 
I think it could be faster.