Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

About the Visual Studio Integration Plugin

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.

How to install the Visual Studio Integration Plugin

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.

Now the integration plugin should be properly installed. If this doesn't work, then contact Trolltech technical support giving details of what went wrong.

How to uninstall the Visual Studio Integration Plugin

When you want to uninstall the integration plugin, just carry out the following steps.

What can the Visual Studio Integration Plugin do?

The integration plugin adds the following options to Visual Studio:

Using the 'New TQt Project' button

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 TQt Designer. When you have finished with the form in TQt Designer just save it and it will appear in a ready made TQt project.

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.

Using the 'New TQt Dialog' button

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.

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 TQt Designer to allow you to design your new dialog, and will add it to the existing project.

If you want to add an existing dialog to your project, then just select the relevant .ui file. This will then add it to your existing project and add the relevant steps to create the generated code.

Using the 'TQt Designer' button

The 'TQt Designer' button simply starts up TQt Designer, 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.

Using the 'Open TQt Project' button

The 'Open TQt Project' button allows you to convert an existing qmake project file into a .dsp file which you can insert into your existing workspace. When you click the 'Open TQt Project' button, just select an existing qmake project file (a .pro file) and then click OK. You will get a message box at the end which asks you to insert the newly created .dsp file into your existing workspace.

Using the 'Write TQt Project' button

The 'Write TQt Project' button creates a qmake project (.pro) file for your current project so that you can easily copy the files onto another platform and be able to use qmake to create a Makefile on that other platform. All you need to do is make the project you want to create a .pro file for, and click on the button. Just name your qmake project file and click Save.

Using the 'Use TQt In Current Project' button

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.

Using the 'Add MOC' button

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 Q_OBJECT and click the button.

You only need to use this button if you added a file that has Q_OBJECT 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.


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8