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. Getting QTextDocumentLayout
Qt 6.11 is out! See what's new in the release blog

Getting QTextDocumentLayout

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 2.8k 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.
  • D Offline
    D Offline
    DenProg
    wrote on last edited by
    #1

    Hello.

    I have a QTextEdit object in my app. I want to overload QTextDocumentLayout::resizeInlineObject() function of the document's layout. How to do that? Can I change the layout of the document to main?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuhamedAuda
      wrote on last edited by
      #2

      you need to create new class based on QTextEdit class and add same method to new class with full same declartions

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenProg
        wrote on last edited by
        #3

        The method resizeInlineObject() is in the QTextDocumentLayout class, not in the QTextEdit class.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenProg
          wrote on last edited by
          #4

          Why QTextDocumentLayout class is private? Why cannot I to derive from it?

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkdoug
            wrote on last edited by
            #5

            Almost one year later, I am now wondering the same thing. It's a lot of very useful code that could help us with customizing document layouts.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              waiz
              wrote on last edited by
              #6

              And 169 days later, this issue claims yet another victim.

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

                Hi all,

                What about "QAbstractDocumentLayout":http://qt-project.org/doc/qt-5/qabstracttextdocumentlayout.html ?

                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

                • Login

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