How to create a vcproj with qmake such that its filters reflect the directory structure?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:53:57
Krsna

If you run qmake with CONFIG -= flat, you'll get the following project structure:

Header Files
    foo
        foo.h
    bar
        bar.h
Source Files
    foo
        foo.cpp
    bar
        bar.cpp

This has always bothered me, which is why I'm writing a fix on the Mac for Xcode projects. Eventually I'll probably write one for VS (which is easier since the project file is an XML document).

If you're writing software strictly on Windows using Visual Studio, I would recommend using the Visual Studio Integration Plugin as it will automatically generate the UIC and MOC steps needed to compile Qt files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!