<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LordElph's Ramblings &#187; Qt</title>
	<atom:link href="http://blog.dixo.net/category/qt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dixo.net</link>
	<description>Stuff and nonsense about software development and whatever else I find fun...</description>
	<lastBuildDate>Thu, 18 Mar 2010 13:04:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Doxygen help in QtCreator</title>
		<link>http://blog.dixo.net/2009/05/20/using-doxygen-help-in-qtcreator/</link>
		<comments>http://blog.dixo.net/2009/05/20/using-doxygen-help-in-qtcreator/#comments</comments>
		<pubDate>Wed, 20 May 2009 19:23:35 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[Qt]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/?p=289</guid>
		<description><![CDATA[If you&#8217;re documenting your classes with Doxygen tags you might be wondering if you can use that help inside QtCreator and get those F1 tooltips whenever you hover a documented class or method.
I wondered the same thing, and it turns out Doxygen needed a little tweaking to make it work. Karsten Heimrich at Nokia rather [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" src="http://blog.dixo.net/wp-content/uploads/2009/05/tooltip.png" alt="" title="tooltip example" width="243" height="157" class="alignright size-full wp-image-292" />If you&#8217;re documenting your classes with Doxygen tags you might be wondering if you can use that help inside QtCreator and get those F1 tooltips whenever you hover a documented class or method.</p>
<p>I wondered the same thing, and it turns out Doxygen needed a little tweaking to make it work. Karsten Heimrich at Nokia rather kindly wrote a <a href="http://blog.dixo.net/doxygen.diff">patch</a> which will eventually make it into Doxygen, but if you have burning desire to try this, here&#8217;s what you do&#8230;.</p>
<h2>Patching Doxygen</h2>
<p>Once I hear that Doxygen includes this patch I&#8217;ll remove this section &#8211; so if you&#8217;re reading this, you probably need to patch. So, lets grab the latest sources and apply the patch.</p>
<p><code>svn co https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk doxygen-svn<br />
cd doxygen-svn/src<br />
wget -O doxygen.diff http://blog.dixo.net/doxygen.diff<br />
patch < doxygen.diff</code><br />
cd ..</p>
<p>Then configure and build doxygen with any options you might need. Most people should be able to simply do this</p>
<p><code>./configure<br />
make<br />
make install</code></p>
<p>You should how have the patched doxygen in /usr/local/bin. </p>
<h2>Generating the help</h2>
<p>There are some <a href="http://labs.trolltech.com/blogs/category/labs/documentation/doxygen2qthelp/">Qt Labs posts</a> on generating Qt Help from Doxygen, but here's a quick run through:</p>
<p>To generate a Qt .qch file you'll need the following entries in your doxygen configuration file</p>
<p><code><br />
GENERATE_QHP           = YES<br />
QCH_FILE               = /path/to/output/helpfile.qch<br />
QHP_NAMESPACE          = com.yourdomain.subdomain<br />
QHP_VIRTUAL_FOLDER     = yourfolder<br />
QHG_LOCATION           = /your/path/to/qt/bin/qhelpgenerator<br />
</code></p>
<p>Run patched doxygen and you should end up with a .qch file in the filename given by the QCH_FILE option. Almost done!</p>
<h2>Installing the help in Qt Creator</h2>
<ul>
<li>Go to Tools -> Options -> Help, click "Add" and browse for the generated .qch file. </li>
<li>Click OK and your namespace should now be listed in the registered documentation box</li>
<li>Click OK to dismiss the options dialog</li>
<li><em>Now for the important bit</em> - restart Qt Creator. If you don't do this, the help doesn't get propertly integrated into the IDE, at least on Qt Creator v1.1.</li>
</ul>
<p>That's it! Now hover the mouse over one of your documented classes and you should get a tooltip suggesting you press F1. </p>
<p>Documentation nirvana! Again, my thanks to Karsten Heimrich for writing the patch, hope someone else finds this useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2009/05/20/using-doxygen-help-in-qtcreator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
