Hi,
I am using Qt 4.5.1 and Visual Studio 2005.
I notice that when I create a new .ui file in designer, then add it to Visual Studio.
In VS, I rgt click the .ui file/ Properties, and add the Custom Build Step command
I make the other necessary changes for the .h file, and it compiles and runs fine."%qtdir%\bin\uic.exe" "$(InputPath)" -o "$(InputDir)ui_$(InputName).h"
But if I were to open this file in VS, it gives me an error and displays the xml code instead.
i.e. In Visual Studio, I goto <project name>/Forms/myFile.ui and double click this file. The error I get is
Warning:
The file </Forms/myFile.ui> cannot be opened with the Qt 4 form editor.
Try converting the file using uic.exe
What could be the issue?
Thanks.
Bookmarks