Eclipse integrate with qt

前端 未结 1 1989
礼貌的吻别
礼貌的吻别 2021-02-03 15:12

i download qt and eclipse with c++ cdt , i see that qt come with qt ide (qt creator) , to develop qt appliation and that fine , but i want to do this wit eclipse , i mean use c+

1条回答
  •  有刺的猬
    2021-02-03 15:55

    I had to adjust the following settings in "Project Properties => C/C++ General => Paths and Symbols":

    On the "Includes" tab, for the GNU C++ language, add the following include paths:

    • /usr/include/qt4
    • /usr/include/qt4/QtCore
    • /usr/include/qt4/QtGui

    On the "Symbols" tab, for the GNU C++ language, define the following symbols with a value of "1" (might be different for you, but at least the QT_CC_GNU, QT_CORE_LIB and QT_GUI_LIB are necessary):

    • QT_CC_GNU
    • QT_CORE_LIB
    • QT_GUI_LIB
    • QT_NO_DEBUG
    • QT_SHARED
    • QT_TESTLIB_LIB
    • QT_WEBKIT

    With these settings, the source indexer works well. Other than that, Eclipse is simply calling "make" for the build.

    0 讨论(0)
提交回复
热议问题