Cupidvogel
2nd June 2015, 08:59
I am making a desktop carousel app. There I need to show image widgets, which might contain other sub-widgets as well. For that I am using a QFrame with the required image as background. Here is the image I am trying to use: http://static.vecteezy.com/system/resources/previews/000/010/121/original/iPad_Vector.png. What I want is that only the image shows up, no background image or anything shows up as well, so to the user it looks like just the image. Here is my code:
setGeometry(QRect(100, 20, 325,400));
setFrameStyle(QFrame::StyledPanel);
setStyleSheet("QFrame#ImageFrame { background-color: transparent; background: url(:icon/ipad-skin); }");
setAutoFillBackground(false);
However, I ma getting this as a result:
11190
How do I make the grey background of the QFrame go and display only the image?
setGeometry(QRect(100, 20, 325,400));
setFrameStyle(QFrame::StyledPanel);
setStyleSheet("QFrame#ImageFrame { background-color: transparent; background: url(:icon/ipad-skin); }");
setAutoFillBackground(false);
However, I ma getting this as a result:
11190
How do I make the grey background of the QFrame go and display only the image?