Qt 6 QML TextArea C++ header. Where located?
-
Hello!
Need to create customized QML TextArea with C++. Can't find location of the C++ header of this QML Component. Where it's located and what else need to develop for own subclassed component based on TextArea?
Beside all of it in some articles have seen some information about QQuickPlainText (is it only for widgets?) or QML TextEdit. Should this component be considered for creating own text area? My case is to develop simplified TextArea within ability just to write, read, copy and paste text without extensive functionality. For me all is Ok in TextInput, but it's not multiline. Maybe another component for simple multiline text editing?
-
Hello!
Need to create customized QML TextArea with C++. Can't find location of the C++ header of this QML Component. Where it's located and what else need to develop for own subclassed component based on TextArea?
Beside all of it in some articles have seen some information about QQuickPlainText (is it only for widgets?) or QML TextEdit. Should this component be considered for creating own text area? My case is to develop simplified TextArea within ability just to write, read, copy and paste text without extensive functionality. For me all is Ok in TextInput, but it's not multiline. Maybe another component for simple multiline text editing?
@bogong said in Qt 6 QML TextArea C++ header. Where located?:
For me all is Ok in TextInput, but it's not multiline. Maybe another component for simple multiline text editing?
https://doc.qt.io/qt-6/qml-qtquick-textedit.html
Note:
TextAreainheritsTextEdithave seen some information about QQuickPlainText
I've never seen
QQuickPlainTextbefore. Where did you see that?Need to create customized QML TextArea with C++. Can't find location of the C++ header of this QML Component.
https://github.com/qt/qtdeclarative/blob/v6.11.1/src/quicktemplates/qquicktextarea_p.h Beware, this is private API
-
My case is to develop simplified TextArea within ability just to write, read, copy and paste text without extensive functionality.
You can do that in QML with C++ helpers if needed, but as said before the c++ code for TextArea is not public API.