<?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 can I create a QSkeleton manually with C++ and apply it to a mesh so that I can animate using C++?]]></title><description><![CDATA[<p dir="auto">Basically, I'm able to load a mesh via SceneLoader, but have no access to the joints. So I thought I could use the QSkeleton class and add a skeleton to my entity, but it hasn't worked.</p>
<p dir="auto">I don't know how to create a skeleton and apply it to my mesh in Qt so I can animate it using C++.</p>
<p dir="auto">For example, if I add one joint to a skeleton and apply it to the same Entity as the Mesh nothing happens when I update the transform of the joint and reapply the skeleton in the Update loop I have.</p>
<pre><code>Qt3DCore::QSkeleton* skeleton = new Qt3DCore::QSkeleton();
Qt3DCore::QJoint* joint = new Qt3DCore::QJoint();
joint-&gt;setTranslation(entityTransform-&gt;translation());
skeleton-&gt;setRootJoint(joint);
Qt3DCore::QArmature* a = new Qt3DCore::QArmature();
a-&gt;setSkeleton(skeleton);
entity-&gt;addComponent(a);
</code></pre>
]]></description><link>https://forum.qt.io/topic/96615/how-can-i-create-a-qskeleton-manually-with-c-and-apply-it-to-a-mesh-so-that-i-can-animate-using-c</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 04:18:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/96615.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Nov 2018 21:29:56 GMT</pubDate><ttl>60</ttl></channel></rss>