سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top