Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTextBlockUserData Class Reference

\reentrant More...

#include <qtextobject.h>

+ Inheritance diagram for QTextBlockUserData:
+ Collaboration diagram for QTextBlockUserData:

Public Member Functions

virtual ~QTextBlockUserData ()
 Destroys the user data.
 

Detailed Description

\reentrant

The QTextBlockUserData class is used to associate custom data with blocks of text. \inmodule QtGui

Since
4.1

QTextBlockUserData provides an abstract interface for container classes that are used to associate application-specific user data with text blocks in a QTextDocument.

Generally, subclasses of this class provide functions to allow data to be stored and retrieved, and instances are attached to blocks of text using QTextBlock::setUserData(). This makes it possible to store additional data per text block in a way that can be retrieved safely by the application.

Each subclass should provide a reimplementation of the destructor to ensure that any private data is automatically cleaned up when user data objects are deleted.

See also
QTextBlock

Definition at line 151 of file qtextobject.h.

Constructor & Destructor Documentation

◆ ~QTextBlockUserData()

QTextBlockUserData::~QTextBlockUserData ( )
virtual

Destroys the user data.

Definition at line 740 of file qtextobject.cpp.


The documentation for this class was generated from the following files: