PDA

View Full Version : UIc'ing files



franco.amato
10th July 2009, 20:18
Hi to all'
I start using Qt (Qt 4.5.2). I use visual studio 2005 to compile, not mingw. I designed a little gui with
QtDesigner and it created a .ui file that I added to my project. Now what must I do? I have to add a custom build rule to that generated file right? Can I have an help for that?
I searched without success on internet.
Best Regards,
Franco

nish
12th July 2009, 03:38
for beginners, its better you install the free visual studio Qt addin from qtsoftware, and use it to add a gui (form) class to your project.

gnik
12th July 2009, 08:45
I just use a build rule file containing build rules for MOC, UIC and RCC. It is setup so that whenever I add a *.ui or *.qrc file to a project, the proper build rule is set automatically.

See the attached zip file for my 'build rules' file. You can add this file to visual studio using Project-->Custom Build Rules...-->Find Existing...
Note that the build rules requires the QTDIR environment variable to be set.