Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Split] Font color in QTextEdit



  • How to set font color to my QTextEdit ?? any help ?



  • [quote author="Thomas Kennedy" date="1302252654"]How to set font color to my QTextEdit ?? any help ?[/quote]
    Easy way is to use rich text to set the text, but it depends on what you want to achieve exactly. You can also use QTextDocument to manipulate the text document. But QTextEdit even has a setTextColor() method to make it really easy for you.



  • I split off this question into it's own thread as it was completely unrelated to the previous discussion in the "old thread":http://developer.qt.nokia.com/forums/viewthread/4645

    Please open a new thread in the correct forum if you have new questions, don't just reply in any old thread.


Log in to reply