[Qt-interest] qmake doubt

tang ke tangk at lemote.com
Wed Jun 2 10:13:37 CEST 2010


于 2010年06月02日 15:55, Mandeep Sandhu 写道:
> Hi All,
>
> I'm creating a pro file for my top-level project. This top level QT
> project has only other sub-projects under it. I want to define some
> qmake variables in the top-level project which will be accessed in pro
> file of the sub-projects.
>
> Whats the best way to accomplish this?
>
> I have tried creating a pri file in the top-level project dir and then
> included this file in the sub-project's pro file. But this does not
> work, as in the sub-project files do not see these variables.
>
> Also, it's unclear to me as to what goes into a .pri file? Is there
> some documentation which explains it's use (I've currently searched QT
> Creator's help but could not find much inof there).
>
> Thanks,
> -mandeep
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   
you can write #include(../XXXX.pri) at the subdirs's pro file. and write
the XXXX.pri at top-level dir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x94D6CBB0.asc
Type: application/pgp-keys
Size: 2918 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100602/c615f8d9/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x94D6CBB0.asc
Type: application/pgp-keys
Size: 2918 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100602/c615f8d9/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tangk.vcf
Type: text/x-vcard
Size: 487 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100602/c615f8d9/attachment.vcf 


More information about the Qt-interest-old mailing list