I have added these few lines to resemble GIF image as background for QListWidget
QPixmap pix = QPixmap::grabWidget(ui->label,20,30,741,481);
pix.fill(Qt::transparent);
QPalette p;
p.setBrush(QPalette::Base,pix);
p.base();
@Orby I finally figured this out.
Go into project -> android build options -> Details on build android APK
Click create templates, now you can edit that AndroidManifest.xml and set the option to true.
Hi @Pheelbert,
if you meant changing the background of dropdown list then you will need to do it in __dropDownStyle private property for now.
eg: inside ComboBoxStyle
__dropDownStyle: MenuStyle {
itemDelegate.label: Text {
width:200
height: 80
color: "blue"
text: styleData.text
}
itemDelegate.background: Rectangle {
color: styleData.selected ? "darkGray" : "transparent"
}
}
And to add an arrow you can just use an Image inside the background: Rectangle { component.
@Chris-Kawa, you got me wrong i guess, the problem is not stylesheet inheritance, it's about the target widget itself NOT getting the stylesheet, instead that only passing style to children, naming him doesn't affect the result too.