<?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[Field &#x27;_var&#x27; has incomplete type - alle Ursachen sammeln]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe eine Bibliothek bekommen wovon ich eine Klasse (Lib_Class) benutze.</p>
<p>In dieser Klasse ist ein Object einer anderen Klasse (Other_Class) als QPointer deklariert:</p>
<pre><code>QPointer&lt;Other_Class&gt; _var;
</code></pre>
<p>Nun habe ich in meiner Klasse einen zeiger auf eine Lib_Class Objekt</p>
<pre><code>Lib_Class * _libClass;
</code></pre>
<p>und mein Kompiler sagt:</p>
<blockquote>
<p>C:\MyProjects\MyClass.h:65: Fehler: field '_var' has incomplete type<br />
QPointer&lt;Other_Class&gt; _var;<br />
^</p>
</blockquote>
<p>Ich habe weder Forwärtsdeklarationen noch struct &quot;verbaut&quot;. Sonst finde ich auchnichts im Web <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> ausser, dass der komopiler nicht weiss wie groß anscheinen so ein Other_Class Objekt sein wird?</p>
<p>Welche Gründe kann es für solch eine Fehler-Meldung geben?</p>
<p>Qt 5.3, Win7 Pro</p>
<p>Ich danke schonmal, VG<br />
LesPaul</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/332323/field-_var-has-incomplete-type-alle-ursachen-sammeln</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 03:46:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/332323.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Apr 2015 08:51:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Field &#x27;_var&#x27; has incomplete type - alle Ursachen sammeln on Wed, 22 Apr 2015 08:51:42 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe eine Bibliothek bekommen wovon ich eine Klasse (Lib_Class) benutze.</p>
<p>In dieser Klasse ist ein Object einer anderen Klasse (Other_Class) als QPointer deklariert:</p>
<pre><code>QPointer&lt;Other_Class&gt; _var;
</code></pre>
<p>Nun habe ich in meiner Klasse einen zeiger auf eine Lib_Class Objekt</p>
<pre><code>Lib_Class * _libClass;
</code></pre>
<p>und mein Kompiler sagt:</p>
<blockquote>
<p>C:\MyProjects\MyClass.h:65: Fehler: field '_var' has incomplete type<br />
QPointer&lt;Other_Class&gt; _var;<br />
^</p>
</blockquote>
<p>Ich habe weder Forwärtsdeklarationen noch struct &quot;verbaut&quot;. Sonst finde ich auchnichts im Web <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> ausser, dass der komopiler nicht weiss wie groß anscheinen so ein Other_Class Objekt sein wird?</p>
<p>Welche Gründe kann es für solch eine Fehler-Meldung geben?</p>
<p>Qt 5.3, Win7 Pro</p>
<p>Ich danke schonmal, VG<br />
LesPaul</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2451175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2451175</guid><dc:creator><![CDATA[lespaul]]></dc:creator><pubDate>Wed, 22 Apr 2015 08:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to Field &#x27;_var&#x27; has incomplete type - alle Ursachen sammeln on Wed, 22 Apr 2015 08:55:50 GMT]]></title><description><![CDATA[<p>QPointer included?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2451177</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2451177</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Wed, 22 Apr 2015 08:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Field &#x27;_var&#x27; has incomplete type - alle Ursachen sammeln on Wed, 22 Apr 2015 13:00:05 GMT]]></title><description><![CDATA[<p>LordJaxom schrieb:</p>
<blockquote>
<p>QPointer included?</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> No..<br />
den ganzen Morgen nach nem Fehler gesucht für nen include.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Ich danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2451201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2451201</guid><dc:creator><![CDATA[lespaul]]></dc:creator><pubDate>Wed, 22 Apr 2015 13:00:05 GMT</pubDate></item></channel></rss>