Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom documentLayout for QTextDocument
Forum Updated to NodeBB v4.3 + New Features

Custom documentLayout for QTextDocument

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 731 Views 2 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.
  • J Offline
    J Offline
    Jan-Willem
    wrote on last edited by
    #1

    I want to experiment with QAbstractTextDocumentLayout to see how I can influence how the contents of a QTextDocument is painted in a QTextEdit. But I can't seem to find a good starting point. The QTextDocumentLayout contains a lot of private stuff and isn't exactly suitable as an entry point.

    I could not find anything usable on Google, so perhaps someone can help me to get started?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, QTextDocmentLayout is currently the best example. The fact that it uses some private APIs doesn't make it unsuitable as starting point. You can still learn how you can implement one thing or the other from it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jan-Willem
        wrote on last edited by
        #3

        Yes. I already reworked the htmlparser to a custom one.
        Anyhow, I will focus on the QTextDocumentLayout.
        Thanks @SGaist!

        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