Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt 6 QML TextArea C++ header. Where located?
Qt 6.11 is out! See what's new in the release blog

Qt 6 QML TextArea C++ header. Where located?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 361 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote last edited by bogong
    #1

    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?

    JKSHJ 1 Reply Last reply
    0
    • B bogong

      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?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote last edited by
      #2

      @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: TextArea inherits TextEdit

      have seen some information about QQuickPlainText

      I've never seen QQuickPlainText before. 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

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote last edited by
        #3

        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.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved