Qt Creator: add Qt module to project

前端 未结 4 1420
轮回少年
轮回少年 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

    Edit your .pro file. It should has one line like this:

    QT += core gui
    

    Append the desired modules in this line. To get the module's names, just remove the "Qt" part in this list. (e.g. QtSql turns "sql")

提交回复
热议问题