I guess you are using the last stylesheet included into vanilla FreeCAD 0.16 and not this v1.8a version, doesn't it?easyw-fc wrote: Hi @pablogil
I'm porting my macro and I'm trying to use QT layout
I have a part of the macro using this code:when used in standard FC basic configuration (no style applied) the code works fineCode: Select all
pal = QtGui.QPalette() bgc = QtGui.QColor(shape_col[0]*255,shape_col[1]*255, shape_col[2]*255) pal.setColor(QtGui.QPalette.Base, bgc) ui.plainTextEdit.viewport().setPalette(pal)
colored boxes.png
but using a stylesheet theme the boxes became transparent
colored boxes-themed1.png
Is there a way to have a box colored inside also when using theme stylesheet?
Thank you
Maurice
Anyway it is a clearly a bug, in order to help me fixing it, could you share with me this macro so that I'm able to reproduce the error (popup window with QPalette)?
Thanks
PS - Other thing that could help me: could you tell me the hierarchy you have used to create the QT GUI?