QLabel with Background Image
I wa unable to create a QLabel (80x40 px) with a semi transparent background. What I tried:
- I create a png 29x29 px and set it through css. The transparency works. The issue is the png is not stretched but repeated instead:
- I use a QPalette:
@ QColor bg_color(0, 0, 0, 50);
But it does draw nothing.
- I tried with the css property @ background-color: rgba(0, 0, 255, 50); }@ . But it does draw nothing.
How can i stretch the background-image in order to meete the QLabel's geometry?
Qt version: 4.8.2 embedded - windows ce
If it solves ur issue.
thank you it worked. I ve another question. If I change the content of the QLabel the background image disapper. How does it is suppose to work?