Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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?
MuhamedAuda last edited by
you need to create new class based on QTextEdit class and add same method to new class with full same declartions
The method resizeInlineObject() is in the QTextDocumentLayout class, not in the QTextEdit class.
Why QTextDocumentLayout class is private? Why cannot I to derive from it?
jkdoug last edited by
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.
waiz last edited by
And 169 days later, this issue claims yet another victim.
What about "QAbstractDocumentLayout":http://qt-project.org/doc/qt-5/qabstracttextdocumentlayout.html ?