Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
It is possible to set a QTextCharFormat foreground from a QPalette?
setForeground() takes a [[Doc:QBrush]] as argument, [[Doc:QPalette]] returns brushes. So, yes, this works. You'll have to poke the brush out of the palette manually, though, there's no way to pass a QPalette to the text format directly.
I see, thanks.