Hi,

I have a main window with black background image. On it I place a checkbox with transparent round background image both for checked and unchecked states. I am expecting that the corners of checkbox's background image would be transparent since the image is transparent. But I see that corners have black background. and it seems that the background image of the mainwindow but drawn with respect to the size of checkbox.

I have set following stylesheets.

For Main Window
Qt Code:
  1. border-image: url(:/res/bg.png);
To copy to clipboard, switch view to plain text mode 

For checkbox
Qt Code:
  1. QCheckBox::indicator:unchecked
  2. {
  3. image: url(:/res/btn_off.png);
  4.  
  5. }
  6.  
  7. QCheckBox::indicator:checked
  8. {
  9. image: url(:/res/btn_on.png);
  10. }
To copy to clipboard, switch view to plain text mode 

Please let me know what am doing wrong here?
Thanks