<?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[Adding a QtCreator Library to a Project]]></title><description><![CDATA[<p dir="auto">I Opened QtCreator, selected New Project and then Library, a C++ library. Now I want to add it to another Project: I am tired of using add new for both headers and sources for all the classes. I have that Library, but I cannot find a way to add it to another project--I was succssful in the past, but I forgot how I did it. I tried all the steps in the documentation to no avail. I did build the .pro file and it worked; however, I promoted Widget to one of the classes in the library. When I compiled I get an UI error that it cannot find the .h file of the promoted class. It seems to require the full path. I believe that I found the problem in the XML file generated by the designer, but the XML file is read only.</p>
<p dir="auto">Does anyone know how to add a QtCreator Library, it is a directory, not as file; it contains the .h and .cpp files and a .pro file?</p>
]]></description><link>https://forum.qt.io/topic/139319/adding-a-qtcreator-library-to-a-project</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 06:10:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139319.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2022 15:48:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding a QtCreator Library to a Project on Sat, 17 Sep 2022 04:07:07 GMT]]></title><description><![CDATA[<p dir="auto">I have a  subdir  project with its .pro file. I build  new subproject and add it to my  project.<br />
Then  I change the new subproject .pro to  "TEMPLATE =  lib" and  rebuild the entire project.<br />
Then I  add the new (internal) library using "add library "  to my main .pro or to whatever subproject needs it. .<br />
Little convoluted but reliable and repeatable.<br />
( I am using Linux, if it makes a difference )</p>
]]></description><link>https://forum.qt.io/post/729083</link><guid isPermaLink="true">https://forum.qt.io/post/729083</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sat, 17 Sep 2022 04:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to Adding a QtCreator Library to a Project on Wed, 14 Sep 2022 16:35:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ofmrew">@<bdi>ofmrew</bdi></a> A followup: I deleted the class from the Library and created it the normal way. It seems to work, but I would like to do it the correct way and not built the .pro file for each project.</p>
]]></description><link>https://forum.qt.io/post/728739</link><guid isPermaLink="true">https://forum.qt.io/post/728739</guid><dc:creator><![CDATA[ofmrew]]></dc:creator><pubDate>Wed, 14 Sep 2022 16:35:26 GMT</pubDate></item></channel></rss>