You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/doc/html/integration.html

169 lines
7.2 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/integration.doc:36 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>About the Visual Studio Integration Plugin</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
<a href="index.html">
<font color="#004faf">Home</font></a>
| <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
| <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
| <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
| <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
| <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>About the Visual Studio Integration Plugin</h1>
<p> The Visual Studio Integration Plugin is currently available only to users of
Visual Studio 6, it offers simple ways of doing common tasks when writing a
TQt application.
<p> <!-- toc -->
<ul>
<li><a href="#1"> How to install the Visual Studio Integration Plugin
</a>
<li><a href="#2"> How to uninstall the Visual Studio Integration Plugin
</a>
<li><a href="#3"> What can the Visual Studio Integration Plugin do?
</a>
<ul>
<li><a href="#3-1"> Using the 'New TQt Project' button
</a>
<li><a href="#3-2"> Using the 'New TQt Dialog' button
</a>
<li><a href="#3-3"> Using the 'TQt Designer' button
</a>
<li><a href="#3-4"> Using the 'Open TQt Project' button
</a>
<li><a href="#3-5"> Using the 'Write TQt Project' button
</a>
<li><a href="#3-6"> Using the 'Use TQt In Current Project' button
</a>
<li><a href="#3-7"> Using the 'Add MOC' button
</a>
</ul>
</ul>
<!-- endtoc -->
<p> <h2> How to install the Visual Studio Integration Plugin
</h2>
<a name="1"></a><p> When you install TQt, the integration plugin should be installed for you,
and ready for use. However, sometimes this does not happen properly, so
you need to manually carry out the following steps.
<p> <ul>
<li> Ensure that the file '%MSDevDir%&#92;addins&#92;qmsdev.dll' exists.
<li> Start Visual Studio, if it isn't already running.
<li> Select Tools|Customize|Add-ins and Macro Files.
<li> Ensure the checkbox to the left of the "TQMsDev Developer Studio-Add-In" add-in is checked.
<li> Click Close.
</ul>
<p> Now the integration plugin should be properly installed. If this doesn't
work, then contact Trolltech technical support giving details of
what went wrong.
<p> <h2> How to uninstall the Visual Studio Integration Plugin
</h2>
<a name="2"></a><p> When you want to uninstall the integration plugin, just carry out the
following steps.
<p> <ul>
<li> Close down any instances of Visual Studio.
<li> Delete the file '%MSDevDir%&#92;addins&#92;qmsdev.dll'
</ul>
<p> <h2> What can the Visual Studio Integration Plugin do?
</h2>
<a name="3"></a><p> The integration plugin adds the following options to Visual Studio:
<p> <ul>
<li> New TQt Project
<li> New TQt Dialog
<li> TQt Designer
<li> Open TQt Project
<li> Write TQt Project
<li> Use TQt In Current Project
<li> Add MOC
</ul>
<p> <h3> Using the 'New TQt Project' button
</h3>
<a name="3-1"></a><p> The 'New TQt Project' button allows you to create a simple TQt project
ready for development. Simply fill in the form and if you select
'Dialog' or 'Main Window' without MDI support then it will
automatically start up <em>TQt Designer</em>. When you have finished with
the form in <em>TQt Designer</em> just save it and it will appear in a
ready made TQt project.
<p> If you select 'Main Window' with 'MDI Support' then it will simply
give you a code skeleton in a project ready for you to populate with
your own code.
<p> <h3> Using the 'New TQt Dialog' button
</h3>
<a name="3-2"></a><p> The 'New TQt Dialog' button works in two ways: You can use it to create a new
dialog for your project; or you can use it to insert an existing
dialog into your project.
<p> If you want to create a new dialog then all you need to do is specify where
the dialog file should be saved and give it a name. This will start up
<em>TQt Designer</em> to allow you to design your new dialog, and will add it to
the existing project.
<p> If you want to add an existing dialog to your project, then just select the
relevant <tt>.ui</tt> file. This will then add it to your existing project and add
the relevant steps to create the generated code.
<p> <h3> Using the 'TQt Designer' button
</h3>
<a name="3-3"></a><p> The 'TQt Designer' button simply starts up <em>TQt Designer</em>, it has no ties to
your existing project so whatever you do with it will not affect your
existing projects. It can also be started up by using the Ctrl+Shift+D key
combination in Visual Studio.
<p> <h3> Using the 'Open TQt Project' button
</h3>
<a name="3-4"></a><p> The 'Open TQt Project' button allows you to convert an existing <tt>qmake</tt> project file into a <tt>.dsp</tt> file which you can insert into
your existing workspace. When you click the 'Open TQt Project'
button, just select an existing <tt>qmake</tt> project file (a <tt>.pro</tt>
file) and then click OK. You will get a message box at the end
which asks you to insert the newly created <tt>.dsp</tt> file into your
existing workspace.
<p> <h3> Using the 'Write TQt Project' button
</h3>
<a name="3-5"></a><p> The 'Write TQt Project' button creates a <tt>qmake</tt> project (<tt>.pro</tt>)
file for your current project so that you can easily copy the files
onto another platform and be able to use <tt>qmake</tt> to create a Makefile
on that other platform. All you need to do is make the project you
want to create a <tt>.pro</tt> file for, and click on the button. Just
name your <tt>qmake</tt> project file and click Save.
<p> <h3> Using the 'Use TQt In Current Project' button
</h3>
<a name="3-6"></a><p> The 'Use TQt In Current Project' button simply adds in the necessary
information for the current project so that it links against TQt and
sets any other settings needed to use TQt in that project.
<p> <h3> Using the 'Add MOC' button
</h3>
<a name="3-7"></a><p> The 'Add MOC' button will add in the custom build step for the selected file
so that it creates any needed MOC files and it will add these generated
files to the project. All you need to do to use it is click on a file that
has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> and click the button.
<p> You only need to use this button if you added a file that has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> in it by hand, you don't need to use this if you used any
of the previously mentioned buttons. It can also be invoked by using
the Ctrl+Shift+M key combination in Visual Studio.
<p>
<!-- eof -->
<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>