IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QTextObject Class

The https:// class is a base class for different kinds of objects that can group parts of a https:// together.

All functions in this class are https://.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

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▲

Returns the document this object belongs to.

See Also▲

See also https://()

QTextFormat QTextObject::format() const▲

Returns the text object's format.

See Also▲

See also https://(), https://()

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://().

[protected] void QTextObject::setFormat(const QTextFormat &format)▲

Sets the text object's format.

See Also▲

See also https://()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.