I am trying to implement something similar to when you click the ellipse, in Creator, for text on a QLabel. In other words, I want the user to be able select between two tabs, one for rich text, with buttons for; bold text, underlined, etc, and another tab for HTML. I started to make a widget in Designer, but was stopped short by not finding a way to name the tabs. Between http://doc.qt.io/qt-4.8/http://doc.qt.io/qt-5/qtwidgets-richtext-textedit-example.html and http://doc.qt.io/qt-4.8/http://doc.qt.io/qt-4.8/qt-dialogs-tabdialog-example.html, I should be able to figure out the workings, but am wondering if it is possible, without hand coding everything. My reluctance to hand coding is mainly in visualizing the layouts, and being able to adjust them, when they do not work.

In addition, I am not sure how to connect the two tabs, like Creator does, although that might come from inherited classes that are not described in QTextEdit.

I also assume that I need to save the file in HTML format, and propagate it from there, when reopening it.