[Qt-creator] Editor window line spanning full length - background color changes

Bojan Petrović bojan85 at gmail.com
Wed Nov 6 21:37:23 CET 2013


CPPEditorWidget inherits from QPlainTextEdit and this explains how to
highlight a line in it:

http://stackoverflow.com/questions/5427572/how-to-change-current-line-format-in-qtextedit-without-selection

I don't know if CPPEditor or CPPEditorWidget already expose such
functionality though.


On 6 November 2013 20:37, "C. Bergström" <cbergstrom at pathscale.com> wrote:

> 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
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131106/bdfcba90/attachment.html>


More information about the Qt-creator mailing list