Qt:Документация 4.3.2/qtextblockuserdata

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

QTextBlockUserData Class Reference
[модуль QtGui ]

The QTextBlockUserData class is used to associate custom data with blocks of text. Далее...

 #include <QTextBlockUserData>

This class was introduced in Qt 4.1.

Открытые функции


Подробное описание

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

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.


Описание функций-членов

QTextBlockUserData::~QTextBlockUserData () [virtual]

Destroys the user data.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2