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

  • SEARCH
  • Home
  • 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 9076837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:11:47+00:00 2026-06-16T19:11:47+00:00

Short Version Is it possible to have two .pro file under the same folder?

  • 0

Short Version

Is it possible to have two .pro file under the same folder?

Detailed Version

I’m trying to write unit test using QtTest for one of my projects. The project is Plugin Loader which just loads plugin. So my project Folder looks like:

- PluginLoader
 | PluginLoader.pro
 |+bin     // where I have my binary
 |+build   // where I have moc and .o
 |+src     // the actual src for the PluginLoader
 |+test    // some test while I'm developing
 |-unitTest
   | unitTest.pro
   | UnitTest.cpp
   | UnitTest.h
   |-SamplePlugins
     | SamplePluginONE.cpp
     | SamplePluginONE.h
     | SamplePluginTWO.cpp
     .
     .
     .

I know the first thing that comes to mind is just to put a .pro file in the SamplePlugins folder, but I can’t do that. The reason for that is, I am ought to use template .pro file in 3 different types:

  1. Sub-directory template, Only contains the sub directories like PluginLoader.pro. Basically it tells Qt to look into sub directories provided in there for some .pro file.
  2. Application template, which generates binary and put in bin folder. I have on in my test folder.
  3. Library template, which generates .so and put it in some other path. I use this one in my src folder

Now if I want to test my application which only loads some plugins, I need to have some plugins. That’s why I have SamplePlugins folder under unitTest folder.

UnitTest.pro has to be from “Application” .pro template so it generates the unittest binary. And the plugin samples should have “Library” .pro so they generate “.so”. And that is my dilemma. If I put “Library” .pro file in SapmlePlugins then it wont be parse because it’s parent folder doesn’t have a “Sub-Directory” .pro.

The only way that comes to my mind to overcome this, is to have a “Sub-directory” .pro file in unitTest. Then create another folder under unitTest and call it theActualUnitTest and move the actual unit with its “Application” .pro file into it. And creat a “Library” .pro in SamplePlugins folder. However, I can’t do so, because I can’t change the foldering, as we have many other projects in the same foldering structure, and some scripts that does some stuff…so changing folder structure is not an option. So I was wondering if it is possible to have two .pro file under a same folder.

  • 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-06-16T19:11:48+00:00Added an answer on June 16, 2026 at 7:11 pm

    Well this is what I did to overcome my issue:

    Put a “library” template .pro file in the SamplePlugins folder and in the PluginLoader.pro which was “sub-directory” template .pro file I asked Qt to look into unitTest/SamplePlugins for a another .pro file:

    SUBDIRS  = src \
               test \
               unitTest \
               unitTest/SamplePlugins \
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short version : Is it possible or not to use impersonation in ASP.NET to
Short version: Is it easy/feasible/possible to program modal window in Flash (AS3)? Is there
Short version: I have a similar setup to StackOverflow. Users get Achievements. I have
Short version: I'm trying to determine the best way to track what the user
Short version: How can I map two columns from table A and B if
Short version Is it possible to access variables from a module declared as our
Short version: Is it possible in NHibernate to create a mapping for a class
Short version: I have a NxNxN matrix full of different values. I want to
Short version: Is there way to achieve in Python the same effect achieved by
Short Version Is there a way to have visually represented user re-sizable data ranges

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.