3

I'm trying to change the color of the entire QSciScintilla editor widget. I've tried using the function

QSciScintilla::setPaper(const QColor &c)

but that seems to change only the color behind the text (see screenshot). How can I change the background color of the ENTIRE box?

Thanks in advance.

Nafis Zaman
  • 1,505
  • 13
  • 16
  • I would love to know this too. QScintilla gives me endless grief. – beta Aug 07 '12 at 19:28
  • @beta I know the feeling. Documentation is very scarce, until now. You can find lots of beginner-friendly docs on this site: https://qscintilla.com/ – K.Mulier May 13 '17 at 18:10

1 Answers1

3

Calling setPaper on the QsciScintilla widget will have no effect if a lexer has been set.

Try using the setDefaultPaper function of the current lexer.

ekhumoro
  • 115,249
  • 20
  • 229
  • 336