Closed Martinix75 closed 1 year ago
item.setBackground(newQBrush(newQColor(r=cint(255), g=cint(0), b=cint(0)),Qt_BrushStyle.SolidPattern))
works for me; using NoBrush
will not paint anything.
Always like this .. I arrive near the solution .. then I get lost in a glass of water! It comes to cry ... yes with "solidpaint" it works! thanks
And in this way, only the text is colored:
item.setForeground(newQBrush(newQColor(r=cint(255), g=cint(15), b=cint(5)),Qt_BrushStyle.SolidPattern))
tanhks e good day by andrea
Today I don't write to you for bugs or things that do not work (at least I think), only that I have been thinking about it for three days and I do not arrive at a solution (I don't know how to do it). The thing I can't do is make it appear in red (or other color) the numbers in the table (or the red writing or the background), the program is always as follows:
In the program the Python originates, the background color is written as:
But I can't reproduce it in Nim; Then I would like the red writing more, or if we turn exaggerating, the red background and the blue writing for example, also to provide an example of how to do it! I don't really know how to do it! Maybe you have an idea? Thanks from Andrea