You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 6th 2009, 12:07am

Visual Studio Integration

Hi,

I installed the commercial evaluation version of Qt Standalone and Qt SDK (v 4.5.0).

I then ran the batch file that says "Visual Studio with Qt4.5.0". However when I run Visual Studio 2005, I don't see anywhere in the menus or controls that QT has been integrated.

My question is what is the correct procedure to integrate Qt with Visual Studio, and how is it accessed from within Visual Studio 2005.

Thanks,

Arun

2

Tuesday, April 21st 2009, 7:52pm

2005

I'm not using 2005, but I'm having trouble with 2008. Did you download qt-vs-addin-1.0.0-rc1.exe from http://www.qtsoftware.com/downloads/visual-studio-add-in??

My problem, if anyone can help, is that I'm using the document (http://doc.trolltech.com/vs-integration-…ng-started.html) and it seems outdated. (It says "edit connections" when I think it means "edit signals / slots").

Specifically, I'm trying to put code behind a button. The instructions say to double-click it in the VS IDE (which works when the form is loaded in the IDE), but when I open the form, it shells QT Designer. Then I double click it and it thinks I'm changing the button name.

So then I said screw VS 2008 integration for the time being, and I went to do it in QT Creator. But I couldn't find it there either.

Quoted

The Qt Visual Studio Integration makes this very easy. Simply double-click the Add button; this will open the .cpp file associated to the dialog and generate a skeleton slot called on_addButton_clicked(). Type in the following code lines in the slot's body:
AddDialog dialog(this);
dialog.exec();
Can anyone help?

3

Wednesday, April 22nd 2009, 9:04am

In QtCreator (I think in VS too) use context menu (right mouse button) on the button and choose "Go to slot...".
BTW I use QtCreator + MSVC 2008 Express tools (compiler etc).
Fighting fire with fire.
Three can keep a secret if two of them are dead.

4

Wednesday, April 22nd 2009, 2:59pm

ok

When I am in VS 2008, I double click addressbook.ui, and it shells QT Designer, and I see NO menu item "go to slot." However, when I open up QT Creator, and open the addressbook.ui, yes, "go to slot" and when I choose "clicked()", it works.

Your comment about it being the same in VS seems to indicate that I should be able to open the addressbook.ui in VS. I can't. It always shells it out to QT designer. Is this correct behavior? Also from the quote in my prev. post, it seems like in your configuration, you can view the QT GUIS in VS. I can't. Any idea there?

Are there known issues w/VS integration anywhere?

5

Wednesday, April 22nd 2009, 7:31pm

Visual C++ 2008

I found the known issues with Visual Studio ... mine was not in them."
  • The Qt Visual Studio add-in does not work together with the Windows Open Source Qt binary installer. To use the add-in with a Qt Open Source version, download and compile the source package, available at http://download.qtsoftware.com/qt/source…e-src-4.5.0.zip.
  • The Qt Visual Studio add-in Beta will not work on non-English Visual Studio versions. This issue will be fixed in an upcoming Beta 2 release.
"

I just downloaded and installed VC++ 2008 (MSVC) ... it's compiling now .... I'll let you know in a min if it's different. Am working off of

http://rajorshi.net/blog/2009/01/using-q…c-express-2008/

This post has been edited 1 times, last edit by "jj_30" (Apr 22nd 2009, 7:37pm)