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. Custom document layout for QML Text Edit
Forum Updated to NodeBB v4.3 + New Features

Custom document layout for QML Text Edit

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 119 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.
  • C Offline
    C Offline
    ChiefyChief
    wrote on last edited by
    #1

    Hello all,

    I'm looking to experiment with QAbstractTextDocumentLayout to see if I can make some custom rendering elements for HTML and RichText objects such as QuoteBlocks as there is only basic coverage with the current subset of HTML4 (I'd like rounded corners and side line etc).

    To try and play with the internals and how it works I've inherited from QTextDocumentLayout and overridden the paint functions and also set this layout to the underlying QTextDocument within my QQuickTextEdit elements in C++ but when typing into these elements the breakpoints within those overridden functions are not hit? It's like it just does not go through those paint functions?

    Because of this I feel like I've taken the wrong approach, am I accessing the wrong layout to provide a custom renderer for QQuick text inputs?

    Could anyone push me into the right direction?

    Danke in advanced

    1 Reply Last reply
    0

    • Login

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