QTextObject Class▲
-
Header: QTextObject
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
-
qmake: QT += gui
-
Inherits: https://
-
Inherited By: https:// and https://
-
Group: QTextObject is part of https://
Detailed Description▲
The common grouping text objects are lists (https://), frames (https://), and tables (https://). A text object has an associated https://() and https://().
There are essentially two kinds of text objects: those that are used with blocks (block formats), and those that are used with characters (character formats). The first kind are derived from https://, and the second kind from https://.
You rarely need to use this class directly. When creating custom text objects, you will also need to reimplement https://() which acts as a factory method for creating text objects.
See Also▲
See also https://, Text Object Example
Member Function Documentation▲
[explicit protected] QTextObject::QTextObject(QTextDocument *document)▲
Creates a new https:// for the given document.
This function should never be called directly, but only from https://().
[virtual protected] QTextObject::~QTextObject()▲
Destroys the text object.
Text objects are owned by the document, so you should never destroy them yourself.
QTextDocument *QTextObject::document() const▲
QTextFormat QTextObject::format() const▲
int QTextObject::formatIndex() const▲
Returns the index of the object's format in the document's internal list of formats.
See Also▲
See also https://()
int QTextObject::objectIndex() const▲
Returns the object index of this object. This can be used together with https://().


