<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Android-Only Bug in QTextEdit and QPlainTextEdit Qt 5.3.2 | Qt 5.4 RC1]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Ok, I think I found a show stopper that only seems to exist in Qt for Android.</p>
<p dir="auto">Basically I am using a QTextEdit (I also tested it with QPlainTextEdit) and I have noticed that the Left-Arrow key on the virtual keyboard that pops up does <em>not</em> move the cursor/caret to the previous position.</p>
<p dir="auto">I have tried to work-around the problem by sub-classing the QTextEdit (or QPlainTextEdit) and handling the keyPressEvent and detecting the left arrow key press but the cursor still does <em>not</em> move.</p>
<p dir="auto">I need to have this have this fixed so I cannot release the product with this bug.</p>
<p dir="auto">Please fix this ASAP. It exists in Qt 5.3.2 and I just tried Qt 5.4 RC1 and the issue is still there.</p>
<p dir="auto">Below I have #included a sample of how I tried to work-around the issue but to no avail.</p>
<p dir="auto">Am I doing something wrong?</p>
<p dir="auto">@void MyTextEdit::keyReleaseEvent(QKeyEvent *e)<br />
{<br />
QTextEdit::keyReleaseEvent(e);</p>
<pre><code>if (e-&gt;key() == Qt::Key_Left)
{
    QTextCursor tc = this-&gt;textCursor();

    tc.setPosition(tc.position() - 1, QTextCursor::MoveAnchor);

    this-&gt;setTextCursor(tc);
}    

emit this-&gt;keyRelease(e);
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">I have also tried:</p>
<p dir="auto">@tc.movePosition(QTextCursor::Left, QTextCursor::MoveAnchor);@</p>
<p dir="auto">But no fix. I am out of ideas. Please assist with any work arounds.</p>
]]></description><link>https://forum.qt.io/topic/48659/android-only-bug-in-qtextedit-and-qplaintextedit-qt-5-3-2-qt-5-4-rc1</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 00:42:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48659.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Nov 2014 12:18:51 GMT</pubDate><ttl>60</ttl></channel></rss>