<?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[QtextDocument no document]]></title><description><![CDATA[<p dir="auto">I have a project that was originally developed in Creator 2.0.1 and when I try to run it on a new computer running Creator 2.4.1 it doesn't work properly. I have a button that when pressed displays a manual. The code works fine on the other computer and when I copy the project to the new computer, clean the project, and rebuild the project, it displays a blank QTextDocument and in the appplication output window it shows "QTextBrowser: No document for UserManual.html" Here is the code I use:</p>
<p dir="auto">@void DlgHelpBrowser::showPage(const QString &amp;page) //slot for showing the page<br />
{<br />
QString path= directoryOf("manual").absolutePath();<br />
qDebug()&lt;&lt;"path"&lt;&lt;path; //when this runs it shows the correct path<br />
qDebug()&lt;&lt;"page"&lt;&lt;page; //when this runs it shows the correct file<br />
DlgHelpBrowser *browser = new DlgHelpBrowser (path, page);<br />
browser-&gt;resize(1000, 800);<br />
browser-&gt;show();<br />
}@<br />
@QDir DlgHelpBrowser::directoryOf(const QString &amp;subdir)<br />
{<br />
QDir dir(QApplication::applicationDirPath());<br />
if (dir.dirName().toLower()== "debug" || dir.dirName().toLower()=="release")<br />
dir.cdUp();<br />
<a href="http://dir.cd" target="_blank" rel="noopener noreferrer nofollow ugc">dir.cd</a>(subdir);<br />
return dir;<br />
}@</p>
<p dir="auto">I have looked over the code and the settings in the Creator and can't find any issues.<br />
Any ideas??</p>
]]></description><link>https://forum.qt.io/topic/15204/qtextdocument-no-document</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 01:47:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15204.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Mar 2012 04:08:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtextDocument no document on Thu, 22 Mar 2012 12:48:32 GMT]]></title><description><![CDATA[<p dir="auto">Shadow build is not selected. It was the first time I ran the program then I changed it. Would that have changed a setting that I need to set back? Just before the QText document is called the I see that the correct path is set. Is there a setting to see what QTextDocument is looking for?</p>
]]></description><link>https://forum.qt.io/post/133301</link><guid isPermaLink="true">https://forum.qt.io/post/133301</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Mar 2012 12:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to QtextDocument no document on Thu, 22 Mar 2012 05:58:41 GMT]]></title><description><![CDATA[<p dir="auto">If you set "Shadow Build" property in Projects build settings then your application will looking for the file at the path "projectname-build-desktop" instead of your project folder.</p>
<p dir="auto">You can disable this property or add your file to the application resources.</p>
]]></description><link>https://forum.qt.io/post/133246</link><guid isPermaLink="true">https://forum.qt.io/post/133246</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Mar 2012 05:58:41 GMT</pubDate></item></channel></rss>