<?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[Tab order]]></title><description><![CDATA[<p dir="auto">Open target ui in Qt Designer<br />
Edit / Edit Tab Order<br />
works for me<br />
There are lots of useful settings as well</p>
<p dir="auto">But how to adjust it using Qt Libs?<br />
Tried manipulate already created lineEdits, but could not</p>
<p dir="auto">it does the trick but it tabs with freshly created lineEdits</p>
<p dir="auto">Obj* obj =new Obj);</p>
<pre><code>```
obj-&gt;setWindowFlag(Qt::WindowStaysOnTopHint);
obj-&gt;setGeometry(1393, 437, 500, 200); // Adjust the geometry as needed
obj-&gt;setWindowTitle("obj");

Create line edits
QLineEdit *lineEdit2 = new QLineEdit(obj);
QLineEdit *lineEdit3 = new QLineEdit(obj);
QLineEdit *lineEdit4 = new QLineEdit(obj);
QLineEdit *lineEdit5 = new QLineEdit(obj);
QLineEdit *lineEdit2Again = new QLineEdit(obj)



// Add widgets to the layout
QVBoxLayout *layout = new QVBoxLayout(obj);
layout-&gt;addWidget(lineEdit2);
layout-&gt;addWidget(lineEdit3);
layout-&gt;addWidget(lineEdit4);
layout-&gt;addWidget(lineEdit5);
layout-&gt;addWidget(lineEdit2Again);
</code></pre>
<pre><code></code></pre>
]]></description><link>https://forum.qt.io/topic/153934/tab-order</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 01:11:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/153934.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jan 2024 18:28:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tab order on Thu, 18 Jan 2024 20:36:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacobnovitsky">@<bdi>JacobNovitsky</bdi></a></p>
<blockquote>
<p dir="auto">But how to adjust it using Qt Libs?</p>
</blockquote>
<p dir="auto">Either version of <a href="https://doc.qt.io/qt-6/qwidget.html#setTabOrder" target="_blank" rel="noopener noreferrer nofollow ugc">QWidget::setTabOrder()</a></p>
]]></description><link>https://forum.qt.io/post/786967</link><guid isPermaLink="true">https://forum.qt.io/post/786967</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Thu, 18 Jan 2024 20:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to Tab order on Thu, 18 Jan 2024 20:03:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacobnovitsky">@<bdi>JacobNovitsky</bdi></a> said in <a href="/post/786941">Tab order</a>:</p>
<blockquote>
<p dir="auto">is it possible to move between buttons and lineEdit using arrows?</p>
</blockquote>
<p dir="auto">In the case at hand:<br />
Arrows/No.<br />
Tabs/Yes.</p>
<p dir="auto">Arrows will navigate between widgets as long as they don't have input focus. Once the cursor is stuck in a line edit, only tab will move it. You can subclass <code>QLineEdit</code>to implement arrow based focus changes.</p>
]]></description><link>https://forum.qt.io/post/786962</link><guid isPermaLink="true">https://forum.qt.io/post/786962</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Thu, 18 Jan 2024 20:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Tab order on Thu, 18 Jan 2024 19:34:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacobnovitsky">@<bdi>JacobNovitsky</bdi></a><br />
Not sure what your question about tabbing is, you can do whatever whether you do it in Designer or in code.</p>
<p dir="auto">Don't forget: the <em>only</em> thing saved from Designer is the <code>.ui</code> file.  So anything/everything you do there must be in that file.  And then you run <code>uic</code> to read that and produce file named <code>ui_....h</code>.  (This is put in the build <em>output</em> directory, not the source directory.  If you are Python it's a <code>.py</code> file.)  And these are included/imported into your code file, you can examine them in editor and <em>see</em> what code it produces for your <code>.ui</code> settings.  That can be really useful for understanding how to do things in code which you did in Designer.  The tab stuff would be in this.</p>
<p dir="auto">I don't know about your arrow keys.  You would normally use <strong>Tab</strong> or <strong>Shift+Tab</strong>.  In any case, the interface for moving around should follow the desktop window manager's way of doing things (which Qt will do), rather than inventing your own non-standard way, which would just confuse users.</p>
]]></description><link>https://forum.qt.io/post/786951</link><guid isPermaLink="true">https://forum.qt.io/post/786951</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 18 Jan 2024 19:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to Tab order on Thu, 18 Jan 2024 18:45:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacobnovitsky">@<bdi>JacobNovitsky</bdi></a><br />
is it possible to move between buttons and lineEdit using arrows?</p>
]]></description><link>https://forum.qt.io/post/786941</link><guid isPermaLink="true">https://forum.qt.io/post/786941</guid><dc:creator><![CDATA[JacobNovitsky]]></dc:creator><pubDate>Thu, 18 Jan 2024 18:45:53 GMT</pubDate></item></channel></rss>