[Qt-creator] .pri files?
Danny Price
deepblue842 at googlemail.com
Tue Oct 6 19:07:27 CEST 2009
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.
>
> 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>>
>> 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>>:
>>> 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>>
>> 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>>:
>>>>> 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 list
>>>> Qt-creator at trolltech.com <mailto: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>
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>>
>>>
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com <mailto:Qt-creator at trolltech.com>
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list