[Qt-creator] Custom lines formatting in Compile Output

Petar Perisin petar.perisin at gmail.com
Mon Dec 9 09:12:36 CET 2013


There was recent addon: AnsiEscapeCodeHandler.

You can look into it, to see how to change text format..

in the same way you can implement your own formatter. I'm not 100% sure,
but you might be able to cast signal sender and in that way check if your
parser was sender of that signal.

Regards,
Petar




On Sun, Dec 8, 2013 at 11:52 PM, Mateusz Loskot <mateusz at loskot.net> wrote:

> Hi,
>
> I think I've have learned most of details about Utils::OutputFormatter,
> how it relies on the predefined set of OutputFormat enumerators and how
> it's used by output window classes.
>
> I can't figure out how to customise format of lines appended by my custom
> IOutputParser::stdError/stdOutput.
>
> For example, how can I print a line in green?
> Do I need to implement my own OutputFormatter and do setFormatter on an
> output window, e.g. Compile Output?
>
> Could anyone help or point me where to look in QtC code to learn it?
>
> Best regards,
> --
> Mateusz Łoskot, http://mateusz. loskot.net
> (Sent from mobile, apology for top-posting or broken quotes)
>
> _______________________________________________
> 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/20131209/d0aa4c6c/attachment.html>


More information about the Qt-creator mailing list