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