Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Generating Header and CPP file from .ui file in Visual Studio 2008
QtWS25 Last Chance

Generating Header and CPP file from .ui file in Visual Studio 2008

Scheduled Pinned Locked Moved Game Development
5 Posts 3 Posters 7.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wajahat Karim
    wrote on last edited by
    #1

    I am currently working in a simulator project. And I have got an Open-Source C++ project. So in that project, I have a .ui file made in Qt 3.3. Along with it, I have some Generated .h and .cpp files included in that Visual Studio Project. Now when I change any of .ui, generated .h, or generated .cpp file, then that solution stop working. So now, I am making my own .ui file using Qt 4.8. My question is that how to include it in Visual Studio 2008 project. Or how to generate .h and .cpp file from .ui file?

    Thanks for your support.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you use the MSVS integration, there are custom build steps for the ui files, which are done automatically for Qt projects. If you are working without MSVS integration, you can use the tool uic to build the .h file. More information can be found in the documentation "here":http://doc.qt.nokia.com/latest/uic.html

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wajahat Karim
        wrote on last edited by
        #3

        @Gerolf
        Thanks for your help. But I am not getting how to do it as I have not much experience on Qt. So can you send me any sample code or example something. Maybe you can send me tutorials also.

        Thanks for your help....

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          There are a lot of documentation and examples in Qt Assitant or in "online help":http://doc.qt.nokia.com/

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            Hi Wajahat,

            the link I posted points to uic documentation, uic is the User Interface compiler, which creates source code from designer xml.

            Again the link: "uic":http://doc.qt.nokia.com/latest/uic.html

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved