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

QAccessibleTextSelectionEvent Class

QAccessibleTextSelectionEvent signals a change in the text selection of an object.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAccessibleTextSelectionEvent Class

  • Header: QAccessibleTextSelectionEvent

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Gui)

    target_link_libraries(mytarget PRIVATE Qt6::Gui)

  • qmake: QT += gui

  • Inherits: QAccessibleTextCursorEvent

  • Group: QAccessibleTextSelectionEvent is part of accessibility

Detailed Description

This class is used with QAccessible::updateAccessibility().

Member Function Documentation

 

QAccessibleTextSelectionEvent::QAccessibleTextSelectionEvent(QObject *object, int start, int end)

Constructs a new QAccessibleTextSelectionEvent for object. The new selection this event notifies about is from position start to end.

QAccessibleTextSelectionEvent::QAccessibleTextSelectionEvent(QAccessibleInterface *iface, int start, int end)

Constructs a new QAccessibleTextSelectionEvent for iface. The new selection this event notifies about is from position start to end.

int QAccessibleTextSelectionEvent::selectionEnd() const

Returns the position of the last selected character.

int QAccessibleTextSelectionEvent::selectionStart() const

Returns the position of the first selected character.

void QAccessibleTextSelectionEvent::setSelection(int start, int end)

Sets the selection for this event from position start to end.

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