I am not sure what RichTextBox offers, but there are two options: TextField, which offers you an input box where users can enter text, and Text, which simply displays text including multiple lines and HTML support.
One code example can be seen here:
import QtQuick 2.7
import QtQuick.Controls 1.4
import QtQuick.Window 2.2
// Filename.qml
Window {
width: 640
height: 480
TextField {
placeholderText: "I am a TextFiel"
}
Text {
anchors.centerIn: parent
text: "And I am a Text"
}
}
This code snipplet creates a new Window with a TextFieldin the top left and a Text-item in the center. You can open this in QtCreator and go to the Designer-Tab to view it.
Alternatively, you can run this code with a tool called qmlscene provided by Qt itself. If you have installed Qt on your (Windows) machine and set your PATH environment variable to e.g. "C:\Qt\5.7\msvc2013\bin" (on Windows), then you can even run this in command line. So you can press Alt+ Shift + Right-Click (somewhere in space next to the file), select "Open command window here" and type:
qmlscene Filename.qml