Search code examples
c++qtqt4editorqtextedit

How to implement editor using QTextEdit with toolbar


I'm looking for an example on how to implement a typical rich text editor using QTextEdit.

What I need to implement is a toolbar containing formating functions like: - bold, underline, intalic - font family, size - foreground, background color - text-alignment

Something like this is implemented in QtCreator in designer.

Thanks for advice :)


Solution

  • tada! the answer to your question

    all you have to do is google, and study the code. if ever you are having difficulty with anything, please refer to Qt's documentation first before asking.