<?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[Header file not found]]></title><description><![CDATA[<p dir="auto">In the latest version of QtCreator, I used add new to create a class, both header and sources files were created. I promoted a Widget in Design to the new class, renamed and checked autoFill Background. Then when I started to add<br />
ui-&gt;canvas-&gt;setBackgroundRole(QPalette::Base);<br />
I see the message canvas.h not found.</p>
<p dir="auto">An aside, one note also about the editor: I found using ui. and having the editor change it to ui-&gt; very helpful, but that has been removed.</p>
<p dir="auto">How do I get a header file, that was created by Qt, found?</p>
]]></description><link>https://forum.qt.io/topic/138844/header-file-not-found</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 01:09:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138844.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Aug 2022 14:06:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Header file not found on Wed, 24 Aug 2022 14:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mpergand">@<bdi>mpergand</bdi></a> I see the problem, it should be canvas and not canas! The old eyes have see too many mango seasons. Thanks.</p>
]]></description><link>https://forum.qt.io/post/726028</link><guid isPermaLink="true">https://forum.qt.io/post/726028</guid><dc:creator><![CDATA[ofmrew]]></dc:creator><pubDate>Wed, 24 Aug 2022 14:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Header file not found on Wed, 24 Aug 2022 14:25:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ofmrew">@<bdi>ofmrew</bdi></a> said in <a href="/post/726022">Header file not found</a>:</p>
<blockquote>
<p dir="auto">I see the message canvas.h not found.</p>
</blockquote>
<p dir="auto">HEADERS +=<br />
mainwindow.h<br />
mycanas.h  ---&gt; ?</p>
]]></description><link>https://forum.qt.io/post/726027</link><guid isPermaLink="true">https://forum.qt.io/post/726027</guid><dc:creator><![CDATA[mpergand]]></dc:creator><pubDate>Wed, 24 Aug 2022 14:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to Header file not found on Wed, 24 Aug 2022 14:15:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ofmrew">@<bdi>ofmrew</bdi></a> I forgot to ass additional information:<br />
QT       += core gui</p>
<p dir="auto">greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">CONFIG += c++17</p>
<h1>You can make your code fail to compile if it uses deprecated APIs.</h1>
<h1>In order to do so, uncomment the following line.</h1>
<p dir="auto">#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0</p>
<p dir="auto">SOURCES += <br />
main.cpp <br />
mainwindow.cpp <br />
mycanas.cpp</p>
<p dir="auto">HEADERS += <br />
mainwindow.h <br />
mycanas.h</p>
<p dir="auto">FORMS += <br />
mainwindow.ui</p>
<h1>Default rules for deployment.</h1>
<p dir="auto">qnx: target.path = /tmp/$${TARGET}/bin<br />
else: unix:!android: target.path = /opt/$${TARGET}/bin<br />
!isEmpty(target.path): INSTALLS += target</p>
<p dir="auto">{noformat}<br />
Qt 6.3.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 10.3.1 20210422 (Red Hat 10.3.1-1)) on "xcb"<br />
OS: Linux Mint 20.1 [linux version 5.4.0-58-generic]</p>
<p dir="auto">Kit compiler Desktop qt 6.3.1 GCC 64bit</p>
]]></description><link>https://forum.qt.io/post/726024</link><guid isPermaLink="true">https://forum.qt.io/post/726024</guid><dc:creator><![CDATA[ofmrew]]></dc:creator><pubDate>Wed, 24 Aug 2022 14:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Header file not found on Wed, 24 Aug 2022 14:10:22 GMT]]></title><description><![CDATA[<p dir="auto">I think it's a regression in Qt Creator 8. Please open a bug report at <a href="https://bugreports.qt.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/</a></p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/post/726023</link><guid isPermaLink="true">https://forum.qt.io/post/726023</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Wed, 24 Aug 2022 14:10:22 GMT</pubDate></item></channel></rss>