PDA

View Full Version : Using visual studio add in



Leolander
17th February 2010, 07:01
Hi,

I have just completed the installation of the visual studio add-in, and is now programming a Qt app. I am now trying to create a user-defined slot to link one of my buttons to but it can't seem to find the slot although I have created the function in my code. I may be doing it wrongly, therefore, may I know how to link buttons created using Qt designer to a user defined function in visual studio.

Regards,
Leo

Archimedes
17th February 2010, 07:46
Have you read http://doc.trolltech.com/4.6/designer-using-a-ui-file.html?
Just remember that from a .ui form there's a class generated and according to the methods the above link describes
you can use its members (ie a button) in the class you want. In your case the connect(...) method.