<?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>
									QVector из объектов своего класса, error: use of deleted function - Qt				            </title>
            <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Sat, 06 Jun 2026 11:10:42 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2569</link>
                        <pubDate>Fri, 03 Nov 2023 14:40:04 +0000</pubDate>
                        <description><![CDATA[@aveal Спасибо! Так и сделаю.]]></description>
                        <content:encoded><![CDATA[@aveal Спасибо! Так и сделаю.]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Dafna</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2569</guid>
                    </item>
				                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2568</link>
                        <pubDate>Fri, 03 Nov 2023 12:08:47 +0000</pubDate>
                        <description><![CDATA[@dafna Да, конечно:
QVector&lt; QSharedPointer&lt;UserManager&gt; &gt; users;
users.append(QSharedPointer&lt;UserManager&gt;(new UserManager()));]]></description>
                        <content:encoded><![CDATA[<p>@dafna Да, конечно:</p>
<pre contenteditable="false">QVector&lt; QSharedPointer&lt;UserManager&gt; &gt; users;</pre>
<pre contenteditable="false">users.append(QSharedPointer&lt;UserManager&gt;(new UserManager()));</pre>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2568</guid>
                    </item>
				                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2567</link>
                        <pubDate>Fri, 03 Nov 2023 11:35:25 +0000</pubDate>
                        <description><![CDATA[@aveal А через смарт-поинтеры возможно?]]></description>
                        <content:encoded><![CDATA[@aveal А через смарт-поинтеры возможно?]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Dafna</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2567</guid>
                    </item>
				                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2566</link>
                        <pubDate>Fri, 03 Nov 2023 11:14:16 +0000</pubDate>
                        <description><![CDATA[@dafna Указатели можно хранить как вариант:
QVector&lt;UserManager*&gt; users;]]></description>
                        <content:encoded><![CDATA[<p>@dafna Указатели можно хранить как вариант:</p>
<pre contenteditable="false">QVector&lt;UserManager*&gt; users;</pre>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2566</guid>
                    </item>
				                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2565</link>
                        <pubDate>Fri, 03 Nov 2023 10:24:45 +0000</pubDate>
                        <description><![CDATA[да, верно... А как тогда быть?]]></description>
                        <content:encoded><![CDATA[
<p>UserManager наследует от QObject?</p>
<p></p>
<p>да, верно... А как тогда быть?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Dafna</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2565</guid>
                    </item>
				                    <item>
                        <title>НА: QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2564</link>
                        <pubDate>Fri, 03 Nov 2023 08:52:12 +0000</pubDate>
                        <description><![CDATA[При добавлении в QList/QVector и т. д. создается копия объекта, а для QObject:

UserManager наследует от QObject?]]></description>
                        <content:encoded><![CDATA[<p>При добавлении в QList/QVector и т. д. создается копия объекта, а для QObject:</p>
510
<p>UserManager наследует от QObject?</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2564</guid>
                    </item>
				                    <item>
                        <title>QVector из объектов своего класса, error: use of deleted function</title>
                        <link>https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2563</link>
                        <pubDate>Thu, 02 Nov 2023 16:30:09 +0000</pubDate>
                        <description><![CDATA[Не могу собрать проект, возникает куча ошибок из серии:
C:\Qt\5.15.2\mingw81_32\include/QtCore/qvector.h:818:5: error: use of deleted function &#039;UserManager::UserManager(UserManager&amp;&amp;amp...]]></description>
                        <content:encoded><![CDATA[<p>Не могу собрать проект, возникает куча ошибок из серии:</p>
<pre contenteditable="false">C:\Qt\5.15.2\mingw81_32\include/QtCore/qvector.h:818:5: error: use of deleted function 'UserManager::UserManager(UserManager&amp;&amp;)'</pre>
<p>У меня есть свой класс UserManager, в другом классе массив объектов:</p>
<pre contenteditable="false">QVector&lt;UserManager&gt; users;</pre>
<p>При получении данных от пользователя добавляю:</p>
<pre contenteditable="false">users.append(UserManager());</pre>
<p>Вот после добавления этой строки проект перестает собираться. Подскажите, в чем дело...</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Dafna</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qvector-iz-obektov-svoego-klassa-error-use-of-deleted-function/#post-2563</guid>
                    </item>
							        </channel>
        </rss>
		