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 fine
Code: Select all
pal = QtGui.QPalette() bgc = QtGui.QColor(shape_col*255,shape_col*255, shape_col*255) pal.setColor(QtGui.QPalette.Base, bgc) ui.plainTextEdit.viewport().setPalette(pal)
but using a stylesheet theme the boxes became transparent
Is there a way to have a box colored inside also when using theme stylesheet?
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)?
PS - Other thing that could help me: could you tell me the hierarchy you have used to create the QT GUI?