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
border-image: url(:/res/bg.png);
border-image: url(:/res/bg.png);
To copy to clipboard, switch view to plain text mode
For checkbox
{
image: url(:/res/btn_off.png);
}
{
image: url(:/res/btn_on.png);
}
QCheckBox::indicator:unchecked
{
image: url(:/res/btn_off.png);
}
QCheckBox::indicator:checked
{
image: url(:/res/btn_on.png);
}
To copy to clipboard, switch view to plain text mode
Please let me know what am doing wrong here?
Thanks
Bookmarks