Qt Creator: add Qt module to project

前端 未结 4 1407
轮回少年
轮回少年 2020-12-21 07:19

So when I create a new Qt project inside Qt Creator I\'m only asked for some simple details like location of the project, build targets, the main window class name (along wi

4条回答
  •  半阙折子戏
    2020-12-21 07:46

    As others have pointed out, you simply #include the module you want in the source and add the name of the module in the .pro file to the QT variable.

    However the actual documentation you need which no one else has mentioned is the qmake Project Files page. qmake is very powerful and it's well worth getting familiar with how it works and I think that's why they don't provide a complete GUI for it, as it can handle some very complex scenarios.

提交回复
热议问题