<?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[How to take information from form layout fields?]]></title><description><![CDATA[<p dir="auto">I have a form layout with labels and text edits made with the following script:</p>
<pre><code>QStringList keys;
        QList&lt;int&gt; status;
        for (int i = 0; i &lt; 100; i++) {
            keys &lt;&lt; QString("key %1").arg(i);
            status &lt;&lt; i % 4;
        }

        QWidget *wdg = new QWidget;
        QScrollArea *scroll = new QScrollArea;

        QWidget *content_widget = new QWidget;

        QFormLayout *formLayout = new QFormLayout(content_widget);

        for (int x = 0; x &lt; keys.size(); x++) {

            QTextEdit *field = new QTextEdit;
            field-&gt;setFixedHeight(28);
            field-&gt;setFixedWidth(100);
            formLayout-&gt;addRow(keys.at(x), field);
        }

        scroll-&gt;setWidget(content_widget);
        wdg-&gt;setLayout(new QVBoxLayout);
        wdg-&gt;layout()-&gt;addWidget(scroll);
        wdg-&gt;show();
</code></pre>
<p dir="auto">After having the user fill out the information, I want to be able to extract that information from each field (each QTextEdit). How would I go about doing that?</p>
]]></description><link>https://forum.qt.io/topic/126597/how-to-take-information-from-form-layout-fields</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:14:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126597.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2021 15:29:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to take information from form layout fields? on Wed, 12 May 2021 15:57:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/basselomari">@<bdi>BasselOmari</bdi></a> said in <a href="/post/659406">How to take information from form layout fields?</a>:</p>
<blockquote>
<p dir="auto">How would I go about doing that?</p>
</blockquote>
<p dir="auto">Save all created textedits in a container and read them out later on.</p>
]]></description><link>https://forum.qt.io/post/659408</link><guid isPermaLink="true">https://forum.qt.io/post/659408</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Wed, 12 May 2021 15:57:55 GMT</pubDate></item></channel></rss>