[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/integration.doc:36 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>About the Visual Studio Integration Plugin</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <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>
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | <p> The Visual Studio Integration Plugin is currently available only to users of
|
---|
| 37 | Visual Studio 6, it offers simple ways of doing common tasks when writing a
|
---|
| 38 | Qt application.
|
---|
| 39 | <p> <!-- toc -->
|
---|
| 40 | <ul>
|
---|
| 41 | <li><a href="#1"> How to install the Visual Studio Integration Plugin
|
---|
| 42 | </a>
|
---|
| 43 | <li><a href="#2"> How to uninstall the Visual Studio Integration Plugin
|
---|
| 44 | </a>
|
---|
| 45 | <li><a href="#3"> What can the Visual Studio Integration Plugin do?
|
---|
| 46 | </a>
|
---|
| 47 | <ul>
|
---|
| 48 | <li><a href="#3-1"> Using the 'New Qt Project' button
|
---|
| 49 | </a>
|
---|
| 50 | <li><a href="#3-2"> Using the 'New Qt Dialog' button
|
---|
| 51 | </a>
|
---|
| 52 | <li><a href="#3-3"> Using the 'Qt Designer' button
|
---|
| 53 | </a>
|
---|
| 54 | <li><a href="#3-4"> Using the 'Open Qt Project' button
|
---|
| 55 | </a>
|
---|
| 56 | <li><a href="#3-5"> Using the 'Write Qt Project' button
|
---|
| 57 | </a>
|
---|
| 58 | <li><a href="#3-6"> Using the 'Use Qt In Current Project' button
|
---|
| 59 | </a>
|
---|
| 60 | <li><a href="#3-7"> Using the 'Add MOC' button
|
---|
| 61 | </a>
|
---|
| 62 | </ul>
|
---|
| 63 | </ul>
|
---|
| 64 | <!-- endtoc -->
|
---|
| 65 |
|
---|
| 66 | <p> <h2> How to install the Visual Studio Integration Plugin
|
---|
| 67 | </h2>
|
---|
| 68 | <a name="1"></a><p> When you install Qt, the integration plugin should be installed for you,
|
---|
| 69 | and ready for use. However, sometimes this does not happen properly, so
|
---|
| 70 | you need to manually carry out the following steps.
|
---|
| 71 | <p> <ul>
|
---|
| 72 | <li> Ensure that the file '%MSDevDir%\addins\qmsdev.dll' exists.
|
---|
| 73 | <li> Start Visual Studio, if it isn't already running.
|
---|
| 74 | <li> Select Tools|Customize|Add-ins and Macro Files.
|
---|
| 75 | <li> Ensure the checkbox to the left of the "QMsDev Developer Studio-Add-In" add-in is checked.
|
---|
| 76 | <li> Click Close.
|
---|
| 77 | </ul>
|
---|
| 78 | <p> Now the integration plugin should be properly installed. If this doesn't
|
---|
| 79 | work, then contact Trolltech technical support giving details of
|
---|
| 80 | what went wrong.
|
---|
| 81 | <p> <h2> How to uninstall the Visual Studio Integration Plugin
|
---|
| 82 | </h2>
|
---|
| 83 | <a name="2"></a><p> When you want to uninstall the integration plugin, just carry out the
|
---|
| 84 | following steps.
|
---|
| 85 | <p> <ul>
|
---|
| 86 | <li> Close down any instances of Visual Studio.
|
---|
| 87 | <li> Delete the file '%MSDevDir%\addins\qmsdev.dll'
|
---|
| 88 | </ul>
|
---|
| 89 | <p> <h2> What can the Visual Studio Integration Plugin do?
|
---|
| 90 | </h2>
|
---|
| 91 | <a name="3"></a><p> The integration plugin adds the following options to Visual Studio:
|
---|
| 92 | <p> <ul>
|
---|
| 93 | <li> New Qt Project
|
---|
| 94 | <li> New Qt Dialog
|
---|
| 95 | <li> Qt Designer
|
---|
| 96 | <li> Open Qt Project
|
---|
| 97 | <li> Write Qt Project
|
---|
| 98 | <li> Use Qt In Current Project
|
---|
| 99 | <li> Add MOC
|
---|
| 100 | </ul>
|
---|
| 101 | <p> <h3> Using the 'New Qt Project' button
|
---|
| 102 | </h3>
|
---|
| 103 | <a name="3-1"></a><p> The 'New Qt Project' button allows you to create a simple Qt project
|
---|
| 104 | ready for development. Simply fill in the form and if you select
|
---|
| 105 | 'Dialog' or 'Main Window' without MDI support then it will
|
---|
| 106 | automatically start up <em>Qt Designer</em>. When you have finished with
|
---|
| 107 | the form in <em>Qt Designer</em> just save it and it will appear in a
|
---|
| 108 | ready made Qt project.
|
---|
| 109 | <p> If you select 'Main Window' with 'MDI Support' then it will simply
|
---|
| 110 | give you a code skeleton in a project ready for you to populate with
|
---|
| 111 | your own code.
|
---|
| 112 | <p> <h3> Using the 'New Qt Dialog' button
|
---|
| 113 | </h3>
|
---|
| 114 | <a name="3-2"></a><p> The 'New Qt Dialog' button works in two ways: You can use it to create a new
|
---|
| 115 | dialog for your project; or you can use it to insert an existing
|
---|
| 116 | dialog into your project.
|
---|
| 117 | <p> If you want to create a new dialog then all you need to do is specify where
|
---|
| 118 | the dialog file should be saved and give it a name. This will start up
|
---|
| 119 | <em>Qt Designer</em> to allow you to design your new dialog, and will add it to
|
---|
| 120 | the existing project.
|
---|
| 121 | <p> If you want to add an existing dialog to your project, then just select the
|
---|
| 122 | relevant <tt>.ui</tt> file. This will then add it to your existing project and add
|
---|
| 123 | the relevant steps to create the generated code.
|
---|
| 124 | <p> <h3> Using the 'Qt Designer' button
|
---|
| 125 | </h3>
|
---|
| 126 | <a name="3-3"></a><p> The 'Qt Designer' button simply starts up <em>Qt Designer</em>, it has no ties to
|
---|
| 127 | your existing project so whatever you do with it will not affect your
|
---|
| 128 | existing projects. It can also be started up by using the Ctrl+Shift+D key
|
---|
| 129 | combination in Visual Studio.
|
---|
| 130 | <p> <h3> Using the 'Open Qt Project' button
|
---|
| 131 | </h3>
|
---|
| 132 | <a name="3-4"></a><p> The 'Open Qt Project' button allows you to convert an existing <tt>qmake</tt> project file into a <tt>.dsp</tt> file which you can insert into
|
---|
| 133 | your existing workspace. When you click the 'Open Qt Project'
|
---|
| 134 | button, just select an existing <tt>qmake</tt> project file (a <tt>.pro</tt>
|
---|
| 135 | file) and then click OK. You will get a message box at the end
|
---|
| 136 | which asks you to insert the newly created <tt>.dsp</tt> file into your
|
---|
| 137 | existing workspace.
|
---|
| 138 | <p> <h3> Using the 'Write Qt Project' button
|
---|
| 139 | </h3>
|
---|
| 140 | <a name="3-5"></a><p> The 'Write Qt Project' button creates a <tt>qmake</tt> project (<tt>.pro</tt>)
|
---|
| 141 | file for your current project so that you can easily copy the files
|
---|
| 142 | onto another platform and be able to use <tt>qmake</tt> to create a Makefile
|
---|
| 143 | on that other platform. All you need to do is make the project you
|
---|
| 144 | want to create a <tt>.pro</tt> file for, and click on the button. Just
|
---|
| 145 | name your <tt>qmake</tt> project file and click Save.
|
---|
| 146 | <p> <h3> Using the 'Use Qt In Current Project' button
|
---|
| 147 | </h3>
|
---|
| 148 | <a name="3-6"></a><p> The 'Use Qt In Current Project' button simply adds in the necessary
|
---|
| 149 | information for the current project so that it links against Qt and
|
---|
| 150 | sets any other settings needed to use Qt in that project.
|
---|
| 151 | <p> <h3> Using the 'Add MOC' button
|
---|
| 152 | </h3>
|
---|
| 153 | <a name="3-7"></a><p> The 'Add MOC' button will add in the custom build step for the selected file
|
---|
| 154 | so that it creates any needed MOC files and it will add these generated
|
---|
| 155 | files to the project. All you need to do to use it is click on a file that
|
---|
| 156 | has <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> and click the button.
|
---|
| 157 | <p> You only need to use this button if you added a file that has <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> in it by hand, you don't need to use this if you used any
|
---|
| 158 | of the previously mentioned buttons. It can also be invoked by using
|
---|
| 159 | the Ctrl+Shift+M key combination in Visual Studio.
|
---|
| 160 | <p>
|
---|
| 161 | <!-- eof -->
|
---|
| 162 | <p><address><hr><div align=center>
|
---|
| 163 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 164 | <td>Copyright © 2007
|
---|
| 165 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 166 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 167 | </table></div></address></body>
|
---|
| 168 | </html>
|
---|