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

Detailed Description

The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

  • Header: FormatRange

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Gui)

    target_link_libraries(mytarget PRIVATE Qt6::Gui)

  • qmake: QT += gui

Detailed Description

Member Variable Documentation

 

QTextCharFormat FormatRange::format

Specifies the format to apply.

int FormatRange::length

Specifies the number of characters the format range spans.

int FormatRange::start

Specifies the beginning of the format range within the text layout's text.

Related Non-Members

 

bool operator!=(const FormatRange &lhs, const FormatRange &rhs)

Returns true if any of the start, length, or format fields in lhs and rhs contain different values respectively.

bool operator==(const FormatRange &lhs, const FormatRange &rhs)

Returns true if the start, length, and format fields in lhs and rhs contain the same values respectively.

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