I have the following code to paint a semi-transparent label on an image and then write on that label:
Qt Code:
  1. topLabel = new QTextEdit(imageLabel);
  2. // topLabel->setAttribute(Qt::WA_NoSystemBackground);
  3. QPalette palette;
  4. // a white semi-transparent background
  5. palette.setColor(QPalette::Window, QColor(255, 255, 255, 127));
  6. topLabel->setPalette(palette);
  7. topLabel->setText(*text);
To copy to clipboard, switch view to plain text mode 
It creates a white, opaque background.
It topLabel is QLabel, it creates a transparent background.
In any case, it is not semi-transparent.