I use visual studio 2010, Qt add-in, etc., everything is fine, and then create a new project using Qt add-in ... when I double-click the * .ui (actual form) file in VS it opens Qtdesigner, then I add some controls, but that doesn't change my code at all: /
The Qt form has been modified, it contains these controls, but the source files are the same as before the creation of my project.
Am I missing something? I think Qtdesinger shoult put some code for the objects that I created using Qtdesigner.
cos, without this we have to write all the code, as if there was no Qtdesigner, so Qtdesinger is useles in Visual studio, the same thing that we could only do by manually coding the form interface. Many thanks.
EDIT:
OK I copied this from the Qt website:
You are referencing objects from a .ui file ...
The Visual Studio code model parser only analyzes C ++ sources, which means that widgets or objects defined in .ui files will not be available. To work around this problem, the Qt Visual Studio add-in automatically generates C ++ code from the .ui file, saving the file and running uic on it. This step is performed every time a project is built. If code completion does not work, try rebuilding the project. it is possible that you need to wait a while until the code completes completely after updating the .ui file. For more information, you can refer to the section "Changing project properties". It still doesn't work ...
You must update the Intellisense code model. This is done by opening the solution explorer, calling the project context menu and activating the Update Intellisense element.
Now it seems like I have such problems, but it doesnโt help at all, update intelisece. I do not see such a possibility in the visual studio, it seems my visual studio add-in does not work.
he says: โYou have to update the code modelโ Woot? can someone explain me how to do this, please.
Here are some output warnings when creating my project:
Warning 1 warning: there are no resources in 'C: \ Users \ Admin \ documents \ visual studio 2010 \ Projects \ VisualStudio \ test \ test.qrc ". C: \ Users \ Admin \ documents \ visual studio 2010 \ Projects \ VisualStudio \ test \ RCC warning 2 warning LNK4099 warning: PDB 'vc100.pdb' was not found with 'qtmaind.lib (qtmain_win.obj)' or in 'C: \ Users \ Admin \ documents \ visual studio 2010 \ Projects \ VisualStudio \ vc100. pdb '; binding the object as if debugging information C: \ Users \ Admin \ documents \ visual studio 2010 \ Projects \ VisualStudio \ test \ qtmaind.lib (qtmain_win.obj)