Results 1 to 3 of 3

Thread: UIc'ing files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default UIc'ing files

    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
    Franco Amato

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: UIc'ing files

    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.

  3. #3
    Join Date
    Jul 2009
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: UIc'ing files

    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.
    Attached Files Attached Files

Similar Threads

  1. UIc'ing files
    By franco.amato in forum Installation and Deployment
    Replies: 1
    Last Post: 12th July 2009, 10:04
  2. Replies: 12
    Last Post: 17th June 2009, 05:34
  3. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.