Hi, Try setting the following property to the text format:
format.setProperty(QTextFormat::FullWidthSelection, true); Pass your text format to QTextEdit::ExtraSelection, and pass a cursor containing your selection, too. Pass a list of QTextEdit::ExtraSelection to: void QPlatinTextEdit::setExtraSelections(); Regards Jarek -------- Original-Nachricht -------- Betreff: [Qt-creator] Editor window line spanning full length - background color changes Datum: Thu, 7 Nov 2013 02:37:39 +0700 Von: "C. Bergström" <[email protected]><mailto:[email protected]> An: [email protected]<mailto:[email protected]> <[email protected]><mailto:[email protected]> Hi We're working on some changes to the editor window and hit a small bump. It's cosmetic, but annoying (to me). ------------- In the attached image you can see we can change the background color for certain pieces of code. Now it only spans the length of the text. Ideally I'd like it to span the full length of the line though. Possible? If so how do we do it. Thanks ./C
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
