<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									QTextEdit | текст по центру - Qt				            </title>
            <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Wed, 19 Aug 2026 08:09:44 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: QTextEdit | текст по центру</title>
                        <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1902</link>
                        <pubDate>Fri, 12 May 2023 17:11:17 +0000</pubDate>
                        <description><![CDATA[Да, так и сделал в итоге:
void StateManager::appendCenter(const QString &amp;str)
{
	ui-&gt;stateTextEdit-&gt;append(str);
	ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);
}
И ...]]></description>
                        <content:encoded><![CDATA[<p>Да, так и сделал в итоге:</p>
<pre contenteditable="false">void StateManager::appendCenter(const QString &amp;str)
{
	ui-&gt;stateTextEdit-&gt;append(str);
	ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);
}</pre>
<p>И потом уже:</p>
<pre contenteditable="false">appendCenter("System state is");
appendCenter("active");</pre>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>roman-5</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1902</guid>
                    </item>
				                    <item>
                        <title>НА: QTextEdit | текст по центру</title>
                        <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1901</link>
                        <pubDate>Fri, 12 May 2023 17:05:45 +0000</pubDate>
                        <description><![CDATA[К сожалению, после каждого append() придется вызывать, если этим вариантом пользоваться, то есть смысл обертку предусмотреть.]]></description>
                        <content:encoded><![CDATA[<p>К сожалению, после каждого <strong><em>append() </em></strong>придется вызывать, если этим вариантом пользоваться, то есть смысл обертку предусмотреть.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal MT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1901</guid>
                    </item>
				                    <item>
                        <title>НА: QTextEdit | текст по центру</title>
                        <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1899</link>
                        <pubDate>Fri, 12 May 2023 16:51:56 +0000</pubDate>
                        <description><![CDATA[От: @aveal 
ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);

Почему-то только последняя строка отцентрировалась.]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="1" data-postid="1898" data-mention="aveal">
<div class="wpforo-post-quote-author"><strong> От: @aveal </strong></div>
<pre contenteditable="false">ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);</pre>
</blockquote>
<p>Почему-то только последняя строка отцентрировалась.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>roman-5</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1899</guid>
                    </item>
				                    <item>
                        <title>НА: QTextEdit | текст по центру</title>
                        <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1898</link>
                        <pubDate>Fri, 12 May 2023 16:04:31 +0000</pubDate>
                        <description><![CDATA[ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);]]></description>
                        <content:encoded><![CDATA[<pre contenteditable="false">ui-&gt;stateTextEdit-&gt;setAlignment(Qt::AlignCenter);</pre>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal MT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1898</guid>
                    </item>
				                    <item>
                        <title>QTextEdit | текст по центру</title>
                        <link>https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1897</link>
                        <pubDate>Fri, 12 May 2023 14:49:09 +0000</pubDate>
                        <description><![CDATA[Не могу понять, как текст в QTextEdit разместить по центру. Что у меня сейчас:
ui-&gt;stateTextEdit-&gt;append(&quot;System state is&quot;);
ui-&gt;stateTextEdit-&gt;append(&quot;active&quot;);
В .qss добави...]]></description>
                        <content:encoded><![CDATA[<p>Не могу понять, как текст в <strong>QTextEdit</strong> разместить по центру. Что у меня сейчас:</p>
<pre contenteditable="false">ui-&gt;stateTextEdit-&gt;append("System state is");
ui-&gt;stateTextEdit-&gt;append("active");</pre>
<p>В <strong>.qss</strong> добавил:</p>
<pre contenteditable="false">QTextEdit {
	text-align: center;
}</pre>
<p>Толку никакого.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>roman-5</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qtextedit-tekst-po-czentru/#post-1897</guid>
                    </item>
							        </channel>
        </rss>
		