<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qaccessible.cpp --> <title>QAccessibleTextSelectionEvent Class | Qt GUI 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QAccessibleTextSelectionEvent</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#protected-variables">Protected Variables</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QAccessibleTextSelectionEvent Class</h1> <!-- $$$QAccessibleTextSelectionEvent-brief --> <p><a href="qaccessibletextselectionevent.html">QAccessibleTextSelectionEvent</a> signals a change in the text selection of an object. <a href="#details">More...</a></p> <!-- @@@QAccessibleTextSelectionEvent --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QAccessibleTextSelectionEvent></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qaccessibletextcursorevent.html">QAccessibleTextCursorEvent</a></td></tr></table></div><ul> <li><a href="qaccessibletextselectionevent-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#QAccessibleTextSelectionEvent">QAccessibleTextSelectionEvent</a></b>(QObject *<i>object</i>, int <i>start</i>, int <i>end</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#QAccessibleTextSelectionEvent-1">QAccessibleTextSelectionEvent</a></b>(QAccessibleInterface *<i>iface</i>, int <i>start</i>, int <i>end</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#selectionEnd">selectionEnd</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#selectionStart">selectionStart</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#setSelection">setSelection</a></b>(int <i>start</i>, int <i>end</i>)</td></tr> </table></div> <ul> <li class="fn">2 public functions inherited from <a href="qaccessibletextcursorevent.html#public-functions">QAccessibleTextCursorEvent</a></li> <li class="fn">5 public functions inherited from <a href="qaccessibleevent.html#public-functions">QAccessibleEvent</a></li> </ul> <a name="protected-variables"></a> <h2 id="protected-variables">Protected Variables</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#m_selectionEnd-var">m_selectionEnd</a></b></td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextselectionevent.html#m_selectionStart-var">m_selectionStart</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QAccessibleTextSelectionEvent-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p><a href="qaccessibletextselectionevent.html">QAccessibleTextSelectionEvent</a> signals a change in the text selection of an object.</p> <p>This class is used with <a href="qaccessible.html#updateAccessibility">QAccessible::updateAccessibility</a>().</p> </div> <!-- @@@QAccessibleTextSelectionEvent --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QAccessibleTextSelectionEvent[overload1]$$$QAccessibleTextSelectionEventQObject*intint --> <h3 class="fn" id="QAccessibleTextSelectionEvent"><a name="QAccessibleTextSelectionEvent"></a>QAccessibleTextSelectionEvent::<span class="name">QAccessibleTextSelectionEvent</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i>object</i>, <span class="type">int</span> <i>start</i>, <span class="type">int</span> <i>end</i>)</h3> <p>Constructs a new <a href="qaccessibletextselectionevent.html">QAccessibleTextSelectionEvent</a> for <i>object</i>. The new selection this event notifies about is from position <i>start</i> to <i>end</i>.</p> <!-- @@@QAccessibleTextSelectionEvent --> <!-- $$$QAccessibleTextSelectionEvent$$$QAccessibleTextSelectionEventQAccessibleInterface*intint --> <h3 class="fn" id="QAccessibleTextSelectionEvent-1"><a name="QAccessibleTextSelectionEvent-1"></a>QAccessibleTextSelectionEvent::<span class="name">QAccessibleTextSelectionEvent</span>(<span class="type"><a href="qaccessibleinterface.html">QAccessibleInterface</a></span> *<i>iface</i>, <span class="type">int</span> <i>start</i>, <span class="type">int</span> <i>end</i>)</h3> <p>Constructs a new <a href="qaccessibletextselectionevent.html">QAccessibleTextSelectionEvent</a> for <i>iface</i>. The new selection this event notifies about is from position <i>start</i> to <i>end</i>.</p> <!-- @@@QAccessibleTextSelectionEvent --> <!-- $$$selectionEnd[overload1]$$$selectionEnd --> <h3 class="fn" id="selectionEnd"><a name="selectionEnd"></a><span class="type">int</span> QAccessibleTextSelectionEvent::<span class="name">selectionEnd</span>() const</h3> <p>Returns the position of the last selected character.</p> <!-- @@@selectionEnd --> <!-- $$$selectionStart[overload1]$$$selectionStart --> <h3 class="fn" id="selectionStart"><a name="selectionStart"></a><span class="type">int</span> QAccessibleTextSelectionEvent::<span class="name">selectionStart</span>() const</h3> <p>Returns the position of the first selected character.</p> <!-- @@@selectionStart --> <!-- $$$setSelection[overload1]$$$setSelectionintint --> <h3 class="fn" id="setSelection"><a name="setSelection"></a><span class="type">void</span> QAccessibleTextSelectionEvent::<span class="name">setSelection</span>(<span class="type">int</span> <i>start</i>, <span class="type">int</span> <i>end</i>)</h3> <p>Sets the selection for this event from position <i>start</i> to <i>end</i>.</p> <!-- @@@setSelection --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>