<?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>QAccessibleTextUpdateEvent 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 >QAccessibleTextUpdateEvent</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">QAccessibleTextUpdateEvent Class</h1> <!-- $$$QAccessibleTextUpdateEvent-brief --> <p>The <a href="qaccessibletextupdateevent.html">QAccessibleTextUpdateEvent</a> class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors. <a href="#details">More...</a></p> <!-- @@@QAccessibleTextUpdateEvent --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QAccessibleTextUpdateEvent></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="qaccessibletextupdateevent-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="qaccessibletextupdateevent.html#QAccessibleTextUpdateEvent">QAccessibleTextUpdateEvent</a></b>(QObject *<i>object</i>, int <i>position</i>, const QString &<i>oldText</i>, const QString &<i>text</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#QAccessibleTextUpdateEvent-1">QAccessibleTextUpdateEvent</a></b>(QAccessibleInterface *<i>iface</i>, int <i>position</i>, const QString &<i>oldText</i>, const QString &<i>text</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#changePosition">changePosition</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#textInserted">textInserted</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#textRemoved">textRemoved</a></b>() const</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"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#m_oldText-var">m_oldText</a></b></td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#m_position-var">m_position</a></b></td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibletextupdateevent.html#m_text-var">m_text</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QAccessibleTextUpdateEvent-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qaccessibletextupdateevent.html">QAccessibleTextUpdateEvent</a> class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.</p> <p>This class is used with <a href="qaccessible.html#updateAccessibility">QAccessible::updateAccessibility</a>().</p> </div> <!-- @@@QAccessibleTextUpdateEvent --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QAccessibleTextUpdateEvent[overload1]$$$QAccessibleTextUpdateEventQObject*intconstQString&constQString& --> <h3 class="fn" id="QAccessibleTextUpdateEvent"><a name="QAccessibleTextUpdateEvent"></a>QAccessibleTextUpdateEvent::<span class="name">QAccessibleTextUpdateEvent</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i>object</i>, <span class="type">int</span> <i>position</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>oldText</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>text</i>)</h3> <p>Constructs a new <a href="qaccessibletextupdateevent.html">QAccessibleTextUpdateEvent</a> for <i>object</i>. The text change takes place at <i>position</i> where the <i>oldText</i> was removed and <i>text</i> inserted instead.</p> <!-- @@@QAccessibleTextUpdateEvent --> <!-- $$$QAccessibleTextUpdateEvent$$$QAccessibleTextUpdateEventQAccessibleInterface*intconstQString&constQString& --> <h3 class="fn" id="QAccessibleTextUpdateEvent-1"><a name="QAccessibleTextUpdateEvent-1"></a>QAccessibleTextUpdateEvent::<span class="name">QAccessibleTextUpdateEvent</span>(<span class="type"><a href="qaccessibleinterface.html">QAccessibleInterface</a></span> *<i>iface</i>, <span class="type">int</span> <i>position</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>oldText</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>text</i>)</h3> <p>Constructs a new <a href="qaccessibletextupdateevent.html">QAccessibleTextUpdateEvent</a> for <i>iface</i>. The text change takes place at <i>position</i> where the <i>oldText</i> was removed and <i>text</i> inserted instead.</p> <!-- @@@QAccessibleTextUpdateEvent --> <!-- $$$changePosition[overload1]$$$changePosition --> <h3 class="fn" id="changePosition"><a name="changePosition"></a><span class="type">int</span> QAccessibleTextUpdateEvent::<span class="name">changePosition</span>() const</h3> <p>Returns where the change took place.</p> <!-- @@@changePosition --> <!-- $$$textInserted[overload1]$$$textInserted --> <h3 class="fn" id="textInserted"><a name="textInserted"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QAccessibleTextUpdateEvent::<span class="name">textInserted</span>() const</h3> <p>Returns the inserted text.</p> <!-- @@@textInserted --> <!-- $$$textRemoved[overload1]$$$textRemoved --> <h3 class="fn" id="textRemoved"><a name="textRemoved"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QAccessibleTextUpdateEvent::<span class="name">textRemoved</span>() const</h3> <p>Returns the removed text.</p> <!-- @@@textRemoved --> </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>