Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1032949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:09:35+00:00 2026-05-16T14:09:35+00:00

I have a normal VS2008 project that I’ve been working on for awhile that

  • 0

I have a normal VS2008 project that I’ve been working on for awhile that is doing some OpenGL based stuff. The main window is created with GLUT and until now that has been sufficient for my GUI.

Now, however, I want to add a small window of buttons, and I need to do it in a cross platform way, so I decided to use QT. I’ve installed all of the QT components including the VS add-in and everything seems to work fine, but I can’t figure out how to add a QT form to my project (since it wasn’t originally configured to use QT). I really don’t want to create a new project in QT Creator and migrate all of my existing code into it, since I already have development environments set up and configured correctly for this code base on three different platforms. Is there some way to tell visual studio to just do the right thing with the .ui file so I can use it in my existing project?

EDIT: By the way, when I say I can’t figure out how to add a QT form to the project, I am able to add a form–meaning a .ui file–that when clicked on opens the QT designer. What I can’t figure out how to do is make it compile. It has a “custom build rule” added by default, but the command line is blank, and I don’t know enough about qmake to get it to build the .ui file for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:09:35+00:00Added an answer on May 16, 2026 at 2:09 pm

    I use these line as custom build rule (where $QTDIR is the location of your Qt installation):

    "$(QTDIR)\bin\uic.exe" -o ".\tmp\ui_$(InputName).h" "$(InputPath)"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using C# and Windows Forms. I have a normal progress bar working
I have a table in SQL server that has the normal tree structure of
I have a program that needs to run as a normal user most of
I have a table that's generated by a normal PHP loop. What I want
Is it normal to modify setter arguments? Let's imagine that we have setString method.
VS2008/C# newbie here. If I open our project, have no code files open, and
In my Visual Studio 2010 project I have files with .mm file extension, that
I have normal HTML input fields, that have default borders depending on Window/Browser settings.
I Have a normal view based application and have added an UITabBar component. I
I have a project that adds elements to an AutoCad drawing. I noticed that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.