我正在使用垂直布局(QVBoxLayout)来管理县。 我要说,其背景是50%的黑色透明。 是否可能?
w
我正在使用垂直布局(QVBoxLayout)来管理县。 我要说,其背景是50%的黑色透明。 是否可能?
w
如果你想要透明地区的边界,你需要把 but子混为一谈(SigTerm说过的话),然后,你可以通过棕榈树分配彩色。
QPalette palette = widget->palette();
palette.setColor(QPalette::Window, QColor(100,100,100,100));
widget->setPalette(palette);
或使用风格
widget->setStylesheet("QWidget{background-color: rgba(100,100,100,100);}";
风格上的好处是,你可以把你的所有申请从不列入守则的某一地点上划出,并通过<代码>QApplication:setStylesheet(QString)设定了广泛的应用风格。
Ahem...自我使用Qt以来,它一直是一个时期,但就我所知,QVBoxLayout没有背景色彩,因此不可能。 离异的草原是植被,它只管理着儿童植被面积。
如果你想制造有色的布局,你很可能不得不以你所希望的颜色来制造一种植被,然后是母体QVBoxLayout。
如果你想让所有非专业儿童受到QVBoxLayout父母的肤色的影响,那就会变得更令人沮丧,但我认为,从Qt4 demo来看,“受感染的糖尿病”可能给你一个想法,说明如何做。
logo_area { background-color: #d9e670; filter:alpha(opacity=25); opacity:0.25; } and another div: #logo_image { background: url(../images/logo.png) no-repeat center 50%; } <div id="...
Lately I ve been interested in representing uncompressed bitmaps in memory. However, one thing I m not sure how to implement properly is binary transparency. E.g., I start out with something like this:...
I have a hex (i.e. #FF0000) color and want to generate 50% transparent 50x50 image using imagemagick from command line.
I am trying to make simple app that allows one to compare image to transparent PNG templates, by dragging the template over picture. For this I need a way to create a PictureBox that will contain the ...
I ve got an element, an image, defined as instrument in css and for the life of me I cannot get it to properly display a png with transparency in IE7 or IE8 -- works fine in Safari and FF. I really ...
I ve just got a quick question that if you have time would be great to have answered. I m working on a new site for a woman that is a fixed width site. She wants her background image to take up the ...
I am building a web CMS in which the user can choose colours for certain site elements. I would like to convert all colour values to hex to avoid any further formatting hassle ("rgb(x,y,z)" or named ...
I m adding an Image View in Interface Builder with a transparent PNG (A logo in the Navigation Bar) but the transparent pixels seems to render as white.. I searched for PNG in Interface Builder but ...