The clipboard does not have any functions to convert formats. You will have to use an external library for conversion. If you Google for "C++ convert rtf html" you will find many links. Here is one of them.

Also understand that QTextEdit does not support all of HTML, so even if you can convert the RTF to HTML, it may not display correctly if there are unsupported HTML elements in it.