• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            I wonder if there is a way to have a view of the project tree, showing subdirectories. In our project, we have many different classes that are each in a different directory. Being able to get those subdirectories to show would be useful to find the file we want to edit.

            方法: I'm using .pri file in each subdirectory instead of .pro.
            [Your main .pro file]
            TEMPLATE = app
            include(foo/foo.pri)
            SOURCES += main.cpp \ ...

            DEPENDPATH += foo [not sure, it is necessary] 可以不用
            INCLUDEPATH += foo [not sure, it is necessary] 可以不用

            [foo.pri]
            HEADERS += $$PWD/foo.h
            SOURCES += $$PWD/foo.cpp
            注: $$PWD/必須要用, 否則是顯示不出目錄結(jié)構(gòu)的, 這個在Windows, Mac下都能起作用, 想必在Linux也同樣有效.

            什么是.pri文件呢?
            Thanks for the hint, but what exactly are .pri files, I often see them
            around, but I haven't found anywhere in the documentation where they are
            mentioned. Is there a place I can learn about them?
            It's just a naming convention for junks of .pro files that are supposed
            to be included using 'include(...)' in 'real' .pro files, 'real' meaning
            'having a TARGET=... line'.
            .pri文件其實就是把.pro文件的后綴改成.pri, .pro文件中使用include(xxx/xxx.pri)和有TARGET=xzy這兩行.
            The .pri file contains the list of source files, header files, .ui files, and .qrc files in the project. Developers on platforms other than Windows can add or remove files to the project by editing the .pri file.
            posted on 2009-05-17 16:49 逛奔的蝸牛 閱讀(6119) 評論(0)  編輯 收藏 引用 所屬分類: Qt
            精品乱码久久久久久夜夜嗨| 综合网日日天干夜夜久久| 久久精品aⅴ无码中文字字幕重口| 狠狠综合久久AV一区二区三区| 久久人人爽人人爽人人AV| 国产精品久久久久久久| 久久精品二区| 国产91色综合久久免费| 欧美激情精品久久久久久久九九九| 久久无码国产专区精品| 久久99中文字幕久久| 尹人香蕉久久99天天拍| 久久线看观看精品香蕉国产| 99久久做夜夜爱天天做精品| 久久er国产精品免费观看2| 久久久久亚洲av成人网人人软件 | 无码任你躁久久久久久老妇App| 久久亚洲精精品中文字幕| 久久精品国产国产精品四凭| 久久99国内精品自在现线| 久久综合色老色| 久久久青草青青国产亚洲免观| 欧美噜噜久久久XXX| 狠狠色狠狠色综合久久| 久久免费观看视频| 一本久久a久久精品综合夜夜| 日产精品久久久久久久| 精品久久久久久久国产潘金莲| 婷婷久久综合九色综合98| 久久精品人人槡人妻人人玩AV| 久久无码中文字幕东京热| 亚洲人成网站999久久久综合| 久久久久亚洲AV成人网人人网站 | 久久国产亚洲精品无码| 久久人妻无码中文字幕| 超级97碰碰碰碰久久久久最新| 亚洲日本va午夜中文字幕久久 | 最新久久免费视频| 久久久久亚洲国产| 伊人久久综合无码成人网| 成人久久免费网站|