[556] | 1 | /****************************************************************************
|
---|
| 2 | **
|
---|
[846] | 3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
[556] | 4 | ** All rights reserved.
|
---|
| 5 | ** Contact: Nokia Corporation ([email protected])
|
---|
| 6 | **
|
---|
| 7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
| 8 | **
|
---|
[846] | 9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
[556] | 10 | ** Commercial Usage
|
---|
| 11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
| 12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
[846] | 13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
| 14 | ** written agreement between you and Nokia.
|
---|
[556] | 15 | **
|
---|
[846] | 16 | ** GNU Free Documentation License
|
---|
| 17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
| 18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
| 19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
| 20 | ** file.
|
---|
[556] | 21 | **
|
---|
| 22 | ** If you have questions regarding the use of this file, please contact
|
---|
| 23 | ** Nokia at [email protected].
|
---|
| 24 | ** $QT_END_LICENSE$
|
---|
| 25 | **
|
---|
| 26 | ****************************************************************************/
|
---|
| 27 |
|
---|
| 28 | /* NOT DOCUMENTED !
|
---|
| 29 | \page qmsdev.html
|
---|
| 30 |
|
---|
| 31 | \title The QMsDev Plugin
|
---|
| 32 |
|
---|
| 33 | The Visual Studio Integration Plugin is currently available only to users of
|
---|
| 34 | Visual Studio 6. It offers simple ways of doing common tasks when writing a
|
---|
| 35 | Qt application.
|
---|
| 36 |
|
---|
| 37 | \tableofcontents
|
---|
| 38 |
|
---|
| 39 | \section1 How to install the Visual Studio Integration Plugin
|
---|
| 40 |
|
---|
| 41 | When you install Qt, the integration plugin should be installed for you,
|
---|
| 42 | however, sometimes this does not happen, so to install the integration
|
---|
| 43 | plugin manually just carry out the following steps.
|
---|
| 44 |
|
---|
| 45 | \list
|
---|
| 46 | \i Start up Visual Studio.
|
---|
| 47 | \i Select Tools|Customize|Add-ins and Macro Files.
|
---|
| 48 | \i Ensure that there is a tick next to QMsDev Developer Studio Add-In.
|
---|
| 49 | \i Click Close.
|
---|
| 50 | \endlist
|
---|
| 51 |
|
---|
| 52 | Now the integration plugin should be installed. If this doesn't
|
---|
| 53 | work, then contact Qt technical support giving details of
|
---|
| 54 | what went wrong.
|
---|
| 55 |
|
---|
| 56 | \section1 How to uninstall the Visual Studio Integration Plugin
|
---|
| 57 |
|
---|
| 58 | When you want to uninstall the integration plugin, just carry out the
|
---|
| 59 | following steps.
|
---|
| 60 |
|
---|
| 61 | \list
|
---|
| 62 | \i Close down any instances of Visual Studio.
|
---|
| 63 | \i Delete the file '%MSDevDir%\\addins\\qmsdev.dll'
|
---|
| 64 | \endlist
|
---|
| 65 |
|
---|
| 66 | \section1 What can the Visual Studio Integration Plugin do?
|
---|
| 67 |
|
---|
| 68 | The integration plugin adds the following options to Visual Studio:
|
---|
| 69 |
|
---|
| 70 | \list
|
---|
| 71 | \i New Qt Project
|
---|
| 72 | \i New Qt Dialog
|
---|
| 73 | \i Qt Designer
|
---|
| 74 | \i Open Qt Project
|
---|
| 75 | \i Write Qt Project
|
---|
| 76 | \i Use Qt In Current Project
|
---|
| 77 | \i Add MOC
|
---|
| 78 | \endlist
|
---|
| 79 |
|
---|
| 80 | \section2 Using the 'New Qt Project' button
|
---|
| 81 |
|
---|
| 82 | The 'New Qt Project' button allows you to create a simple Qt project
|
---|
| 83 | ready for development. Simply fill in the form and if you select
|
---|
| 84 | 'Dialog' or 'Main Window' without MDI support then it will
|
---|
| 85 | automatically start up \e{Qt Designer}. When you have finished with
|
---|
| 86 | the form in \e{Qt Designer} just save it and it will appear in a
|
---|
| 87 | ready made Qt project.
|
---|
| 88 |
|
---|
| 89 | If you select 'Main Window' with 'MDI Support' then it will simply
|
---|
| 90 | give you a code skeleton in a project ready for you to populate with
|
---|
| 91 | your own code.
|
---|
| 92 |
|
---|
| 93 | \section2 Using the 'New Qt Dialog' button
|
---|
| 94 |
|
---|
| 95 | The 'New Qt Dialog' button works in two ways: You can use it to create a new
|
---|
| 96 | dialog for your project; or you can use it to insert an existing
|
---|
| 97 | dialog into your project.
|
---|
| 98 |
|
---|
| 99 | If you want to create a new dialog then all you need to do is specify where
|
---|
| 100 | the dialog file should be saved and give it a name. This will start up
|
---|
| 101 | \e{Qt Designer} to allow you to design your new dialog, and will add it to
|
---|
| 102 | the existing project.
|
---|
| 103 |
|
---|
| 104 | If you want to add an existing dialog to your project, then just select the
|
---|
| 105 | relevant UI file. This will then add it to your existing project and add
|
---|
| 106 | the relevant steps to create the generated code.
|
---|
| 107 |
|
---|
| 108 | \section2 Using the 'Qt Designer' button
|
---|
| 109 |
|
---|
| 110 | The 'Qt Designer' button simply starts up \e{Qt Designer}, it has no ties to
|
---|
| 111 | your existing project so whatever you do with it will not affect your
|
---|
| 112 | existing projects. It can also be started up by using the Ctrl+Shift+D key
|
---|
| 113 | combination in Visual Studio.
|
---|
| 114 |
|
---|
| 115 | \section2 Using the 'Open Qt Project' button
|
---|
| 116 |
|
---|
| 117 | The 'Open Qt Project' button allows you to convert an existing \c
|
---|
| 118 | qmake project file into a \c .dsp file which you can insert into
|
---|
| 119 | your existing workspace. When you click the 'Open Qt Project'
|
---|
| 120 | button, just select an existing \c qmake project file (a \c .pro
|
---|
| 121 | file) and then click OK. You will get a message box at the end
|
---|
| 122 | which asks you to insert the newly created \c .dsp file into your
|
---|
| 123 | existing workspace.
|
---|
| 124 |
|
---|
| 125 | \section2 Using the 'Write Qt Project' button
|
---|
| 126 |
|
---|
| 127 | The 'Write Qt Project' button creates a \c qmake project (\c .pro)
|
---|
| 128 | file for your current project so that you can easily copy the files
|
---|
| 129 | onto another platform and be able to use \c qmake to create a Makefile
|
---|
| 130 | on that other platform. All you need to do is make the project you
|
---|
| 131 | want to create a \c .pro file for, and click on the button. Just
|
---|
| 132 | name your \c qmake project file and click Save.
|
---|
| 133 |
|
---|
| 134 | \section2 Using the 'Use Qt In Current Project' button
|
---|
| 135 |
|
---|
| 136 | The 'Use Qt In Current Project' button simply adds in the necessary
|
---|
| 137 | information for the current project so that it links against Qt and
|
---|
| 138 | sets any other settings needed to use Qt in that project.
|
---|
| 139 |
|
---|
| 140 | \section2 Using the 'Add MOC' button
|
---|
| 141 |
|
---|
| 142 | The 'Add MOC' button will add in the custom build step for the selected file
|
---|
| 143 | so that it creates any needed MOC files and it will add these generated
|
---|
| 144 | files to the project. All you need to do to use it is click on a file that
|
---|
| 145 | has Q_OBJECT and click the button.
|
---|
| 146 |
|
---|
| 147 | You only need to use this button if you added a file that has
|
---|
| 148 | Q_OBJECT in it by hand, you don't need to use this if you used any
|
---|
| 149 | of the previously mentioned buttons. It can also be invoked by using
|
---|
| 150 | the \key{Ctrl+Shift+M} key combination in Visual Studio.
|
---|
| 151 |
|
---|
| 152 | */
|
---|