Solved!
I have modified my qwidget A declaration, making it extends QFrame instead of QWidget and then using:

Qt Code:
  1. setStyleSheet("A{ background-color: yellow }");
To copy to clipboard, switch view to plain text mode 
in order not to propagate the style to children.

Thanks

P.S. This site helps to overcome these kind of problems. It explains how to set backgrounds on widgets of frames.