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 34393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:04:17+00:00 2026-05-10T14:04:17+00:00

I’m about to start on a large Qt application, which is made up of

  • 0

I’m about to start on a large Qt application, which is made up of smaller components (groups of classes that work together). For example, there might be a dialog that is used in the project, but should be developed on its own before being integrated into the project. Instead of working on it in another folder somewhere and then copying it into the main project folder, can I create a sub-folder which is dedicated to that dialog, and then somehow incorporate it into the main project?

  • 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. 2026-05-10T14:04:18+00:00Added an answer on May 10, 2026 at 2:04 pm

    Here is what I would do. Let’s say I want the following folder hierarchy :

    /MyWholeApp 

    will contain the files for the whole application.

    /MyWholeApp/DummyDlg/ 

    will contain the files for the standalone dialogbox which will be eventually part of the whole application.

    I would develop the standalone dialog box and the related classes. I would create a Qt-project file which is going to be included. It will contain only the forms and files which will eventually be part of the whole application.

    File DummyDlg.pri, in /MyWholeApp/DummyDlg/ :

    # Input FORMS += dummydlg.ui HEADERS += dummydlg.h SOURCES += dummydlg.cpp 

    The above example is very simple. You could add other classes if needed.

    To develop the standalone dialog box, I would then create a Qt project file dedicated to this dialog :

    File DummyDlg.pro, in /MyWholeApp/DummyDlg/ :

    TEMPLATE = app DEPENDPATH += . INCLUDEPATH += .  include(DummyDlg.pri)  # Input SOURCES += main.cpp 

    As you can see, this PRO file is including the PRI file created above, and is adding an additional file (main.cpp) which will contain the basic code for running the dialog box as a standalone :

    #include <QApplication> #include 'dummydlg.h'  int main(int argc, char* argv[]) {     QApplication MyApp(argc, argv);      DummyDlg MyDlg;     MyDlg.show();     return MyApp.exec(); } 

    Then, to include this dialog box to the whole application you need to create a Qt-Project file :

    file WholeApp.pro, in /MyWholeApp/ :

    TEMPLATE = app DEPENDPATH += . DummyDlg INCLUDEPATH += . DummyDlg  include(DummyDlg/DummyDlg.pri)  # Input FORMS += OtherDlg.ui HEADERS += OtherDlg.h SOURCES += OtherDlg.cpp WholeApp.cpp 

    Of course, the Qt-Project file above is very simplistic, but shows how I included the stand-alone dialog box.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.