[Qt-creator] .pri files?

Danny Price deepblue842 at googlemail.com
Wed Oct 7 12:12:03 CEST 2009


subdirs list actual sub projects (apps or libs), although creator does not
treat them as such.

.pri files are simple extensions for a .pro file which creator will display
as sub-directories.


On Wed, Oct 7, 2009 at 10:57 AM, Eirik Ulvik <eiriku at simsurgery.com> wrote:

>
>
> Danny Price skrev:
>
> On 6 Oct 2009, at 18:02, Justus Best wrote:
>
>
>
>  But there seems to be an limitation with nested pri files. If I
> include
> an other pri file in my pri file it gets displayed as a top level
> directory, not a nested directory. At least with 1.2.1, will test it
> with latest testing release this evening.
>
>
>  That's correct :(
>
> Also take a look at subdir templates. It takes work (too much really)
> but it is possible to do some neat stuff in Creator.
>
>
>
>  What really is the difference between using the subdirs template and pri
> files?
>
>    Danny Price schrieb:
>
>
>  Cool just be aware that the 1.2.91 branch of Creator adds automatic
> filters for .h and .cpp files so don't go and start adding .pri
> groups
> for source and header files (like I did!). The latest builds also add
> folders for files below or outside the current directory. But .pri
> files
> are the closest you can get to 'logical groups' like those in MSVC
> or XCode.
>
> On Tue, Oct 6, 2009 at 12:44 PM, Robert Caldecott
> <robert.caldecott at gmail.com <mailto:robert.caldecott at gmail.com> <robert.caldecott at gmail.com>>
> wrote:
>
>    Got it.  Thanks very much Danny.  Worth updating my blog with
> this I
>    think.
>
>    2009/10/6 Danny Price <deepblue842 at googlemail.com
>    <mailto:deepblue842 at googlemail.com> <deepblue842 at googlemail.com>>:
>
>
>  Create a new project. In the project's directory, Create a text
>
>
>     file called
>
>
>  'Test.pri'. Back in Creator, add the line 'include(Test.pr)' (no
>
>
>     quotes) to
>
>
>  the project's .pro file and save. Creator will add a folder of
>
>
>     that name
>
>
>  with the .pri inside. Now right click on the folder in the tree
>
>
>     and you can
>
>
>  add files to this .pri (and hence the folder).
>
> On Tue, Oct 6, 2009 at 12:24 PM, Robert Caldecott
> <robert.caldecott at gmail.com <mailto:robert.caldecott at gmail.com> <robert.caldecott at gmail.com>>
>
>
>     wrote:
>
>
>  Sounds worth knowing about - do you have a simple example?  :)
>
> 2009/10/6 Danny Price <deepblue842 at googlemail.com
>
>     <mailto:deepblue842 at googlemail.com> <deepblue842 at googlemail.com>>:
>
>
>   I pri file is like a .h file which can be included in the .pro.
>
>
>      This
>
>
>   allows
> you to create sub-directories of files which Creator will display
> hierachically.
>
>
>  _______________________________________________
> Qt-creator mailing listQt-creator at trolltech.com <mailto:Qt-creator at trolltech.com> <Qt-creator at trolltech.com>http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>  _______________________________________________
> Qt-creator mailing listQt-creator at trolltech.com <mailto:Qt-creator at trolltech.com> <Qt-creator at trolltech.com>http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>             _______________________________________________
>    Qt-creator mailing list
>    Qt-creator at trolltech.com <mailto:Qt-creator at trolltech.com> <Qt-creator at trolltech.com>
>    http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-creator mailing listQt-creator at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-creator
>
>  _______________________________________________
> Qt-creator mailing listQt-creator at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-creator
>
>  _______________________________________________
> Qt-creator mailing listQt-creator at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20091007/dd1e8bd8/attachment.html 


More information about the Qt-creator-old mailing list